LoadedData<T> class
Constructors
-
LoadedData({bool loading = false, int? timestamp, Either<
Failure, T> ? data}) -
const
Properties
-
data
→ Either<
Failure, T> ? -
final
- errored → bool
-
no setter
- failure → Failure?
-
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- loading → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestamp → int?
-
final
- value → T?
-
no setter
Methods
-
copyWith(
{bool? loading, int? timestamp, Either< Failure, T> ? data}) → LoadedData<T> -
copyWithData(
{bool loading = false, Either< Failure, T> ? data}) → LoadedData<T> - Using this function will get a copy of the object with provided Data, also it will set a new timestamp and set the loading prop to false if not specified otherwise
-
copyWithLoading(
) → LoadedData< T> - Returns a copy of the instance but with the loading flag set to true
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override