FdcFieldValueChangeResult<T> class
sealed
Decision returned from an onValueChanging callback.
A callback may accept the proposed value, replace it, or cancel the change. additionalValues can apply related field updates as part of the same logical edit operation.
Constructors
- FdcFieldValueChangeResult.accept()
-
constfactory
- FdcFieldValueChangeResult.cancel([String? message])
-
constfactory
- FdcFieldValueChangeResult.replaceValue(T? value)
-
constfactory
Properties
- accepted → bool
-
Whether the proposed value change should proceed.
no setter
-
additionalValues
→ Map<
String, Object?> -
Related field values to apply with the primary value change.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasReplacement → bool
-
Whether value replaces the originally proposed value.
no setter
- message → String?
-
User-facing message text.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → T?
-
Replacement value when hasReplacement is
true.no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
withAdditionalValues(
Map< String, Object?> values) → FdcFieldValueChangeResult<T> - Returns the same decision enriched with related field updates.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited