FileApiProvider class
Methods
-
batch<T>(String path, {Map<String, dynamic>? queryParameters, Options? options, RequestEnum type = .get, List<JsonFieldAliasModel> jsonSchemas = const [], required dynamic mapper(dynamic json)})
→ Future<Either<BaseException, T>>
-
inherited
-
delete<T>(String path, {dynamic body, Map<String, dynamic>? queryParameters, required T mapper(dynamic json)})
→ Future<Either<BaseException, T>>
-
inherited
-
download<T>(String path, {Map<String, dynamic>? params, VoidDataFunction<double>? onProgress, RequestEnum type = .get, required Future<T> saver(Uint8List bytes)})
→ Future<Either<BaseException, T>>
-
inherited
-
downloadFile(FileModel fileModel, FileActionTypeEnum type)
→ Future<Either<BaseException, SaverResultModel>>
-
-
downloadUrl(FileDownloaderArgument argument, FileActionTypeEnum type)
→ Future<Either<BaseException, SaverResultModel>>
-
-
get<T>(String path, {Map<String, dynamic>? queryParameters, required dynamic mapper(dynamic json), Options? options, VoidDataFunction<double>? onProgress, List<JsonFieldAliasModel> jsonSchemas = const [], RequestEnum type = .get})
→ Future<Either<BaseException, T>>
-
inherited
-
initTokenManager({required RepeatRequestUserCase repeatRequest, required RefreshTokenRequestUserCase refreshTokenRequest, required dynamic getTokenInterseptor(InterceptorsWrapper interseptor)})
→ void
-
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
patch<T>(String path, {dynamic body, required T mapper(dynamic json)})
→ Future<Either<BaseException, T>>
-
inherited
-
post<T>(String path, {dynamic body, Options? options, required T mapper(dynamic json)})
→ Future<Either<BaseException, T>>
-
inherited
-
put<T>(String path, {dynamic body, required T mapper(dynamic json)})
→ Future<Either<BaseException, T>>
-
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
upload<T>(String path, {required List<File> files, required T mapper(dynamic json)})
→ Future<Either<BaseException, T>>
-
inherited
-
uploadFiles(List<FileModel> fileModels)
→ Future<Either<BaseException, List<FileModel>>>
-