GladeModel class abstract
- Inheritance
-
- Object
- ChangeNotifier
- GladeModel
Constructors
Properties
-
allInputs
→ List<
GladeInput< Object?> > -
All inputs registered in GladeModel.
no setter
- debugFormattedValidationErrors → String
-
no setter
-
defaultErrorTranslate
→ ErrorTranslator<
Object?> -
no setter
-
errors
→ List<
Object?> -
no setter
- formattedValidationErrors → String
-
Formats errors from
inputs
.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
-
inputs
→ List<
GladeInput< Object?> > -
Currently tracked inputs by GladeModel.
no setter
- isDirty → bool
-
no setter
- isNotValid → bool
-
no setter
- isPure → bool
-
no setter
- isUnchanged → bool
-
no setter
- isValid → bool
-
no setter
-
lastUpdatedInputKeys
→ List<
String> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
bindToModel(
GladeInput< Object?> input) → void -
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
-
groupEdit(
VoidCallback edit) → void - Use it to update multiple inputs at once before these changes are popragated through notifyListeners().
-
initialize(
) → void - Initialize model's inputs.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyDependecies(
) → void -
notifyInputUpdated(
GladeInput< Object?> input) → void -
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
resetToPure(
{bool copyValueToInitialValue = false}) → void - Resets all inputs to pure state.
-
stringFieldUpdateInput<
INPUT extends GladeInput< (Object?> >INPUT input, String? value) → void - Updates model's input with String? value using its converter.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateInput<
INPUT extends GladeInput< (T?> , T>INPUT input, T value) → void - Updates model's input value.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited