stateKey property

String get stateKey

Generates a unique state key for this field.

The state key is used by the widget system to track and manage the field's state across rebuilds. Based on the field's key in snake_case.

Implementation

String get stateKey => 'form_field_${key.snakeCase}';