ExampleApiService class
Example service showing how to use the GtdError for error handling
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- networkService → GtdNetworkService
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createUser(
Map< String, dynamic> userData) → Future<Map< String, dynamic> > - Example of POST request with error handling
-
fetchUserProfile(
String userId) → Future< Map< String, dynamic> > - Example of GET request with proper error handling
-
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
Static Properties
-
final