Resource<T, E> class
Constructors
- Resource.error(T? data, String errorMessage)
-
factory
- Resource.errorException(T? data, Exception exception)
-
factory
-
Resource.errorList(T? data, List<
ParserMessageEntity< errors)E> > -
factory
- Resource.loading(T? data)
-
factory
- Resource.success(T? data, {Pagination? pagination})
-
factory
Properties
- data → T?
-
final
- errorMessage → String?
-
final
-
errors
→ List<
ParserMessageEntity< ?E> > -
final
- exception → Exception?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- pagination → Pagination?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → RequestStatus
-
final
Methods
-
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