RemoteRepository class
for Remote Repository
- Mixed-in types
Constructors
- RemoteRepository.new(ApiProvider provider, [String? defaultErrorMessage])
Properties
- defaultErrorMessage → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- provider → ApiProvider
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
formatErrorMessage<
E> (dynamic error, String defaultErrorMessage) → ApiError -
inherited
-
handleError<
ResultType, Item> (ApiResponse< ResultType, Item> response) → ApiResponse<ResultType, Item> -
handleRequest<
ResultType, Item> (ApiRequest< ResultType, Item> request, {int timeout = 50, bool retry = false}) → Future<ApiResponse< ResultType, Item> > - makes a network request
-
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