id property

String? get id

Whether a document exists in local state. The document ID.

Implementation

/// The document ID.
String? get id => _doc.value?.id;