FieldCodec class
Defines read and literal commit behavior for one registered canvas field.
Field-specific normalization and invariants belong here. Persistent changes produced by a codec should be routed through EditorController.applyEdit.
Constructors
- FieldCodec({required Object fallback, ReadNodeFn? readNode, ReadSceneFn? readScene, required CommitFn commit, bool isSceneOnly = false})
-
const
Properties
- commit → CommitFn
-
Applies field-specific policy and routes the resulting persistent mutation
through EditorController.applyEdit.
final
- fallback → Object
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isSceneOnly → bool
-
True when the codec is only valid for kSceneFieldsId.
final
- readNode → ReadNodeFn?
-
Reads from a runtime node in the effective rendered scene.
final
- readScene → ReadSceneFn?
-
Reads from the scene for the kSceneFieldsId pseudo node.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited