InjectedTextEditingImp class

InjectedTextEditing implementation

Inheritance
Mixed in types
Available Extensions

Constructors

InjectedTextEditingImp({String text = '', TextSelection selection = const TextSelection.collapsed(offset: -1), TextRange composing = TextRange.empty, List<String? Function(String?)>? validator, bool? validateOnTyping, bool autoDispose = true, void onTextEditing(InjectedTextEditing textEditing)?, bool? validateOnLoseFocus, bool? isReadOnly, bool? isEnabled})

Properties

autoDispose bool
final
autoDisposeWhenNotUsed bool
finalinherited
completer Completer?
getter/setter pairinherited
composing TextRange
The range of text that is still being composed.
no setterinherited
connectionState ConnectionState
no setterinherited
controller TextEditingControllerImp
A controller for an editable text field.
no setteroverride
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
Creates a focus node for this TextField
no setterinherited
form InjectedForm?
The associated InjectedForm
getter/setter pairinherited
formTextFieldDisposer VoidCallback?
Remove this InjectedTextEditing from the associated InjectedForm,
getter/setter pair
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<String>
no setterinherited
initialState String?
getter/setter pairinherited
initialValue String?
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, selectable and focusable 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<String>?
no setterinherited
onTextEditing → (void Function(InjectedTextEditing textEditing)?)
final
removeFromReactiveModel VoidCallback?
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selection TextSelection
The range of text that is currently selected.
no setterinherited
snapState SnapState<String>
A snap representation of the state
no setterinherited
snapValue SnapState<String>
getter/setter pairinherited
state String
Sync state mutation.
getter/setter pairinherited
stateAsync Future<String>
The current Async state
getter/setter pairinherited
stateInterceptorGlobal StateInterceptor<String>?
finalinherited
subscription StreamSubscription?
It is not null if the state is waiting for a Future or is subscribed to a Stream
getter/setter pairinherited
text String
The current text being edited.
no setterinherited
value String
Get the text of the field
no setterinherited

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
controllerWithInitialText(String text) TextEditingControllerImp
Initializes a controller with the given initial text.
override
dispose() → void
Dispose the state
override
disposeIfNotUsed() → void
Dispose the state if it has no listener
inherited
initialize() → void
inherited
initializeState() FutureOr<String?>
Initialize the state
inherited
interceptState(SnapState<String> snap, StateInterceptor<String>? stateInterceptor) SnapState<String>?
inherited
middleSetCreator(StateStatus status, Object? result) → void
inherited
middleSetState(StateStatus status, Object? result, {SideEffects<String>? sideEffects, StateInterceptor<String>? stateInterceptor, bool shouldOverrideDefaultSideEffects(SnapState<String>)?}) → dynamic
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notify({SnapState<String>? nextSnap, SideEffects<String>? sideEffects, bool shouldOverrideDefaultSideEffects(SnapState<String>)?, StateInterceptor<String>? stateInterceptor}) bool
Notify observers
inherited
onAll<R>({R onIdle()?, required R onWaiting()?, required R onError(dynamic error, VoidCallback refreshError)?, required R onData(String 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(String data)?, required R orElse(String data)}) → R
Listen to the injected Model and rebuild when it emits a notification.
inherited
onStateInitialized() → void
inherited
rebuildState() → void
inherited
refresh() Future<String?>
Refresh the Injected state. Refreshing the state means reinitialize it and reinvoke its creation function and notify its listeners.
inherited
reset() → void
reset the text of the field
override
resetDefaultState() → void
inherited
resetField() → void
inherited
setState(Object? mutator(String s), {SideEffects<String>? sideEffects, StateInterceptor<String>? stateInterceptor, bool shouldOverrideDefaultSideEffects(SnapState<String> snap)?, int debounceDelay = 0, int throttleDelay = 0}) Future<String?>
Mutate the state of the model and notify observers.
inherited
setStateNullable(Object? mutator(String? s), {required void middleSetState(StateStatus, dynamic result), required StackTrace? stackTrace}) FutureOr<String?>
inherited
setToHasData(dynamic data, {SideEffects<String>? sideEffects, bool shouldOverrideDefaultSideEffects(SnapState<String>)?, StateInterceptor<String>? stateInterceptor}) → void
Set the state to the data status
inherited
setToHasError(dynamic error, {StackTrace? stackTrace, VoidCallback? refresher, SideEffects<String>? sideEffects, bool shouldOverrideDefaultSideEffects(SnapState<String>)?, StateInterceptor<String>? stateInterceptor}) → void
Set the state to the error status
inherited
setToIsIdle([Object? data]) → void
Set the state to the idle status
inherited
setToIsWaiting({SideEffects<String>? sideEffects, bool shouldOverrideDefaultSideEffects(SnapState<String>)?, StateInterceptor<String>? 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(String data)}) → R
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited