id property

String get id

Getter to obtain the ID for the next document in the collection.

Implementation

String get id => "${length + 1}";