InjectedFormFieldImp<T> class
- Inheritance
-
- Object
- ReactiveModel<
T> - ReactiveModelImp<
T> - InjectedFormFieldImp
- Mixed in types
- Available Extensions
Constructors
-
InjectedFormFieldImp(T initialValue, {List<
String? Function(T value)> ? validator, bool? validateOnValueChange, bool? validateOnLoseFocus, void onValueChange(InjectedFormField formField)?, bool autoDispose = true, bool? isReadOnly, bool? isEnabled})
Properties
- autoDispose → bool
-
final
- autoDisposeWhenNotUsed → bool
-
finalinherited
- completer ↔ Completer?
-
getter/setter pairinherited
- connectionState → ConnectionState
-
no setterinherited
- creator → Object? Function()
-
finalinherited
- customStatus ↔ Object?
-
Custom status of the state. Set manually to mark the state with a particular
tag to be used in your logic.
getter/setter pairinherited
- error ↔ dynamic
-
The error
getter/setter pairinherited
- focusNode → FocusNode
-
Get the focus node for this FormField
no setterinherited
- form ↔ InjectedForm?
-
The associated InjectedForm
getter/setter pairinherited
- formFieldDisposer ↔ VoidCallback?
-
Remove this InjectedTextEditing from the associated InjectedForm,
getter/setter pair
- getState → T
-
no setter
- hasData → bool
-
The state is mutated successfully.
no setterinherited
- hasError → bool
-
The stats has error
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasObservers → bool
-
Whether the state has listeners or not
no setterinherited
-
initialSnapState
→ SnapState<
T> -
no setterinherited
- initialState ↔ T?
-
getter/setter pairinherited
- initialValue ↔ T?
-
getter/setter pairinherited
- isDirty ↔ bool
-
getter/setter pairinherited
- isDone → bool
-
The state is mutated using a stream and the stream is done.
no setterinherited
- isEnabled ↔ bool
-
If false the associated TextField is disabled.
getter/setter pairoverride
- isIdle → bool
-
The state is initialized and never mutated.
no setterinherited
- isInitialized ↔ bool
-
getter/setter pairinherited
- isReadOnly ↔ bool
-
If true the TextField is clickable and selectable but not editable.
getter/setter pairoverride
- isStateInitialized → bool
-
no setterinherited
- isValid → bool
-
no setterinherited
- isWaiting → bool
-
The state is waiting for and asynchronous task to end.
no setterinherited
- isWaitingToInitialize ↔ bool
-
getter/setter pairinherited
- mockableCreator → Object? Function()
-
no setterinherited
- observerLength → int
-
no setterinherited
-
oldSnapState
→ SnapState<
T> ? -
no setterinherited
- onChanged ↔ void Function(T? v)
-
Called when the value of the field changed
getter/setter pairinherited
- onValueChange → (void Function(InjectedFormField formField)?)
-
final
- removeFromReactiveModel ↔ VoidCallback?
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
snapState
→ SnapState<
T> -
A snap representation of the state
no setterinherited
-
snapValue
↔ SnapState<
T> -
getter/setter pairinherited
- state ↔ T
-
The current state
getter/setter pairinherited
-
stateAsync
↔ Future<
T> -
The current Async state
getter/setter pairinherited
-
stateInterceptorGlobal
→ StateInterceptor<
T> ? -
finalinherited
- subscription ↔ StreamSubscription?
-
It is not null if the state is waiting for a Future or is subscribed to a
Stream
getter/setter pairinherited
- value ↔ T
-
The value of the Field
getter/setter pairinherited-getteroverride-setter
Methods
-
addCleaner(
VoidCallback listener) → VoidCallback -
Add a callback to be executed when the state is disposed of.
inherited
-
addObserver(
{required ObserveReactiveModel listener, bool shouldAutoClean = false, bool isSideEffects = true}) → VoidCallback -
Add observer to this state.
inherited
-
cleanState(
) → void -
Clean the state
inherited
-
dispose(
) → void -
Dispose the state
override
-
disposeIfNotUsed(
) → void -
Dispose the state if it has no listener
inherited
-
initialize(
) → void -
inherited
-
initializeState(
) → FutureOr< T?> -
Initialize the state
inherited
-
interceptState(
SnapState< T> snap, StateInterceptor<T> ? stateInterceptor) → SnapState<T> ? -
inherited
-
linkToForm(
) → void -
middleSetCreator(
StateStatus status, Object? result) → void -
inherited
-
middleSetState(
StateStatus status, Object? result, {SideEffects< T> ? sideEffects, StateInterceptor<T> ? stateInterceptor, bool shouldOverrideDefaultSideEffects(SnapState<T> )?}) → dynamic -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notify(
{SnapState< T> ? nextSnap, SideEffects<T> ? sideEffects, bool shouldOverrideDefaultSideEffects(SnapState<T> )?, StateInterceptor<T> ? stateInterceptor}) → bool -
Notify observers
inherited
-
onAll<
R> ({R onIdle()?, required R onWaiting()?, required R onError(dynamic error, VoidCallback refreshError)?, required R onData(T data)}) → R -
Listen to the injected Model and rebuild when it emits a notification.
inherited
-
onOrElse<
R> ({R onIdle()?, R onWaiting()?, R onError(dynamic error, VoidCallback refreshError)?, R onData(T data)?, required R orElse(T data)}) → R -
Listen to the injected Model and rebuild when it emits a notification.
inherited
-
onStateInitialized(
) → void -
inherited
-
rebuildState(
) → void -
inherited
-
refresh(
) → Future< T?> -
Refresh the Injected state. Refreshing the state means reinitialize
it and reinvoke its creation function and notify its listeners.
inherited
-
reset(
) → void -
reset the field
inherited
-
resetDefaultState(
) → void -
inherited
-
resetField(
) → void -
inherited
-
setState(
Object? mutator(T s), {SideEffects< T> ? sideEffects, StateInterceptor<T> ? stateInterceptor, bool shouldOverrideDefaultSideEffects(SnapState<T> snap)?, int debounceDelay = 0, int throttleDelay = 0}) → Future<T?> -
Mutate the state of the model and notify observers.
inherited
-
setStateNullable(
Object? mutator(T? s), {required void middleSetState(StateStatus, dynamic result), required StackTrace? stackTrace}) → FutureOr< T?> -
inherited
-
setToHasData(
dynamic data, {SideEffects< T> ? sideEffects, bool shouldOverrideDefaultSideEffects(SnapState<T> )?, StateInterceptor<T> ? stateInterceptor}) → void -
Set the state to the data status
inherited
-
setToHasError(
dynamic error, {StackTrace? stackTrace, VoidCallback? refresher, SideEffects< T> ? sideEffects, bool shouldOverrideDefaultSideEffects(SnapState<T> )?, StateInterceptor<T> ? stateInterceptor}) → void -
Set the state to the error status
inherited
-
setToIsIdle(
[Object? data]) → void -
Set the state to the idle status
inherited
-
setToIsWaiting(
{SideEffects< T> ? sideEffects, bool shouldOverrideDefaultSideEffects(SnapState<T> )?, StateInterceptor<T> ? stateInterceptor}) → void -
Set the state to the waiting status
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
[bool isFromSubmission = false]) → bool -
Validate the input text by invoking its validator.
inherited
-
whenConnectionState<
R> ({R onIdle()?, required R onWaiting()?, required R onError(dynamic error)?, required R onData(T data)}) → R -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited