TextFieldState class

Text field state can:

  • loading
  • error
  • disable
  • content todo come up with how to combine with the controller
Inheritance

Constructors

TextFieldState.content(String data)
Content constructor
TextFieldState.enabled(String? data, {bool enabled = true})
Enabled constructor
TextFieldState.error(String? data, [Exception? e])
Error constructor
TextFieldState.loading()
Loading constructor

Properties

data String?
Data of entity
finalinherited
error Exception?
Exception from state
finalinherited
hasError bool
State has error
finalinherited
hashCode int
The hash code for this object.
no setterinherited
isEnabled bool
Text field is enabled
final
isLoading bool
State is loading
finalinherited
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