BaseRemoterData<T> class
abstract
Represents abstraction for RemoterData and PaginatedRemoterData
- Implementers
Constructors
- BaseRemoterData({required String key, Object? error, bool? isRefetching, RemoterStatus? status, DateTime? updatedAt, int? failCount})
- Represents abstraction for RemoterData and PaginatedRemoterData
Properties
- error ↔ Object?
-
Represents error object if status is RemoterStatus.error
also can be non-null if next or previous page fetch fails
getter/setter pair
- failCount → int
-
Represents how many times execute function failed while fetching this query, default 0
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isRefetching ↔ bool
-
True if query refetch is in progress, default false
getter/setter pair
- key ↔ String
-
Unique identifier of data
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ RemoterStatus
-
Represents state of data, default RemoterStatus.idle
getter/setter pair
- updatedAt ↔ DateTime
-
Represents last time data is updated, default now
getter/setter pair
Methods
-
copyWith(
{String? key, Nullable< Object> ? error, Nullable<DateTime> ? updatedAt, Nullable<RemoterStatus> ? status, Nullable<bool> ? isRefetching, Nullable<int> ? failCount}) → BaseRemoterData -
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.
inherited