key property

String? get key

The last segment of ref's path, or null at the root.

Implementation

String? get key => ref.key;