FieldContainer<T> class
A container for field values, including error and loading states.
This class is used to represent form fields or other input values that may have associated error messages and loading states.
@ai Use this class to manage the state of form fields in your application, ensuring that error messages and loading indicators are handled appropriately.
- Annotations
-
- @freezed
Constructors
- FieldContainer({required T value, @Default('') String errorText, @Default(false) bool isLoading})
-
constfactory
Properties
-
copyWith
→ $FieldContainerCopyWith<
T, FieldContainer< T> > -
Create a copy of FieldContainer
with the given fields replaced by the non-null parameter values.
no setterinherited
- errorText → String
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLoading → bool
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → T
-
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