discontinuedPackage firebase has been discontinued and replaced by firebase_core.

id property

String get id

Provides the document's ID.

Implementation

String get id => jsObject.id;