TGService<T extends TGResponse, E extends TGError> class
Methods
-
delete({required TGDeleteRequest request, dynamic onSuccess(dynamic T)?, dynamic onError(dynamic T)?})
→ Future<T>
-
-
deleteSync({required TGDeleteRequest request})
→ Future<T>
-
-
get({required TGGetRequest request, dynamic onSuccess(dynamic T)?, dynamic onError(dynamic T)?})
→ Future<T>
-
-
getSync({required TGGetRequest request})
→ Future<T>
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
post({required TGPostRequest request, dynamic onSuccess(dynamic T)?, dynamic onError(dynamic T)?})
→ Future<T>
-
-
postSync({required TGPostRequest request})
→ Future<T>
-
-
put({required TGPutRequest request, dynamic onSuccess(dynamic T)?, dynamic onError(dynamic T)?})
→ Future<T>
-
-
putSync({required TGPutRequest request})
→ Future<T>
-
-
toString()
→ String
-
A string representation of this object.
inherited
-
upload({required TGUploadRequest request, dynamic onSuccess(dynamic T)?, dynamic onError(dynamic T)?})
→ Future<T>
-
-
uploadFile({required TGUploadFileRequest request, dynamic onSuccess(dynamic T)?, dynamic onError(dynamic E)?})
→ Future<T>
-
-
uploadFileSync({required TGUploadFileRequest request})
→ Future<T>
-
Static Methods
-
init({required String baseUrl, String? mockMappingsFile, bool applyMock = false, bool badCertificateCallbackEnabled = false, int connectionTimeoutInSeconds = 15})
→ dynamic
-