value property

T get value

Returns the typed value of this field.

Subclasses must override this getter to provide type-specific behavior, such as returning a default value when rawValue is null, or performing type conversions.

Returns: The typed value of type T. The behavior when rawValue is null depends on the subclass implementation.

Implementation

T get value;
set value (dynamic value)

Sets the value of this field.

The default implementation simply assigns the value to rawValue. Subclasses may override this to provide type conversion, parsing, or validation logic.

Parameters:

  • value: The value to set. The type and conversion behavior depend on the specific field subclass.

Implementation

set value(dynamic value) {
  rawValue = value;
}