Document constructor

Document([
  1. dynamic data
])

Creates an instance with an optional initial data.

If no argument is passed, data is null. Otherwise, it is the first argument.

Implementation

Document([this.data]);