Labelable mixin

origin: stm_portal_mob/lib/models/labelable.dart author: anovsiradj, opencode-go/glm-5.2 version: 2024-07-30, revised: 2026-08-17

Adds labels map + getLabel(field) / setLabel(field, value). Fallback uses String.title() (snake/kebab → Title Case) — self-contained (D2, NO velvet_support).

Properties

hashCode → int
The hash code for this object.
no setterinherited
labels ↔ Map<String, String>
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getLabel(String field) → String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setLabel(String field, String? value) → void
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited