Document is no longer a element. Use document.body.
Dart has the wonderful feature of allowing a boolean to have 3 states.

There exists a if statement that checks for that value, and it throws
when it sees a null.
Unable to set the geometry to dynamic.
removeRange no longer works like that. Using removeAt instead.