CleanApi class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
no setter
-
log
→ CleanLog
-
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
call({required RequestData request})
→ Future<Response>
-
-
cleanJsonDecode(String body)
→ dynamic
-
-
delete<T>({required T fromData(dynamic data), required String endPoint, Map<String, dynamic>? body, bool? showLogs, Either<CleanFailure, T> failureHandler(int statusCode, Map<String, dynamic> responseBody)?, })
→ Future<Either<CleanFailure, T>>
-
-
fetch<T>({required RequestData<T> request})
→ Future<Either<CleanFailure, T>>
-
-
get<T>({required T fromData(dynamic data), required String endPoint, bool? showLogs, Either<CleanFailure, T> failureHandler(int statusCode, Map<String, dynamic> responseBody)?, })
→ Future<Either<CleanFailure, T>>
-
-
getBaseUrl()
→ String
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
patch<T>({required T fromData(dynamic data), required Map<String, dynamic> body, required String endPoint, bool? showLogs, Either<CleanFailure, T> failureHandler(int statusCode, Map<String, dynamic> responseBody)?, })
→ Future<Either<CleanFailure, T>>
-
-
post<T>({required T fromData(dynamic data), required Map<String, dynamic>? body, bool? showLogs, required String endPoint, Either<CleanFailure, T> failureHandler(int statusCode, Map<String, dynamic> responseBody)?, })
→ Future<Either<CleanFailure, T>>
-
-
put<T>({required T fromData(dynamic data), required Map<String, dynamic>? body, required String endPoint, bool? showLogs, Either<CleanFailure, T> failureHandler(int statusCode, Map<String, dynamic> responseBody)?, })
→ Future<Either<CleanFailure, T>>
-
-
-
setup({required String baseUrl, bool showLogs = false, bool enableDialogue = true})
→ void
-
-
toString()
→ String
-
A string representation of this object.
inherited