id property

String get id

A stable identity for keys and tests; defaults to the label.

Implementation

String get id => _id ?? label.toLowerCase().replaceAll(' ', '-');