effectiveKey property

String get effectiveKey

Computes an effective key for the field, prioritizing key, then transforming name (lowercase, spaces to underscores, slashes to dots), defaulting to "no_key". Used for identification in forms or data serialization.

Implementation

String get effectiveKey =>
    key ??
    name?.toLowerCase().replaceAll(' ', '_').replaceAll("/", ".") ??
    "no_key";