id property
Unique identifier for this widget.
Derived from the widget key. Returns a hash-based fallback when no key
is provided.
Implementation
String get id => key != null ? _keyToId(key!) : '[#${shortHash(this)}]';
Unique identifier for this widget.
Derived from the widget key. Returns a hash-based fallback when no key
is provided.
String get id => key != null ? _keyToId(key!) : '[#${shortHash(this)}]';