name property

String get name

Returns the display name for this field.

Uses the label if provided, otherwise converts the key to title case. Automatically applies localization through the .tr() extension.

Implementation

String get name => label?.tr() ?? key.titleCase.tr();