BinRepository class

Inheritance

Constructors

BinRepository(String? baseUrl)

Properties

baseUrl String?
Whether this repository uses the baseUrl from this getter, returns the baseUrl If the baseUrl should be watched from a stream, state or something else, returns null
getter/setter pairoverride-getter
hashCode int
The hash code for this object.
no setterinherited
interceptorsWrapper → InterceptorsWrapper
InterceptorsWrapper for this repository Must be set if useInterceptors is true
no setterinherited
options → BaseOptions?
BaseOptions for Dio Will be used to initialize the dio instance
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
useInterceptors bool
Whether this repository uses interceptors or not Derived classes should override this to change the behavior
no setteroverride

Methods

addInterceptors(InterceptorsWrapper interceptorsWrapper) → dynamic
inherited
delete(String path, {Object? data, Map<String, dynamic>? queryParameters, Options? options, CancelToken? cancelToken, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response>
Wrap DELETE method from Dio
inherited
download(String urlPath, dynamic savePath, {ProgressCallback? onReceiveProgress, Map<String, dynamic>? queryParameters, CancelToken? cancelToken, bool deleteOnError = true, String lengthHeader = Headers.contentLengthHeader, Object? data, Options? options}) Future<Response>
inherited
downloadBytes(String url) Future<Uint8List>
downloadFile(String url, {required String savePath, required String filename}) Future<File>
get(String url, {Object? data, Map<String, dynamic>? queryParameters, Options? options, CancelToken? cancelToken, ProgressCallback? onReceiveProgress}) Future<Response>
Wrap GET method from Dio
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patch(String path, {Object? data, Map<String, dynamic>? queryParameters, Options? options, CancelToken? cancelToken, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response>
Wrap PATCH method from Dio
inherited
post(String path, {Object? data, Map<String, dynamic>? queryParameters, Options? options, CancelToken? cancelToken, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response>
Wrap POST method from Dio
inherited
put(String path, {Object? data, Map<String, dynamic>? queryParameters, Options? options, CancelToken? cancelToken, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response>
Wrap PUT method from Dio
inherited
request(String url, {Object? data, Map<String, dynamic>? queryParameters, CancelToken? cancelToken, Options? options, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response>
Wrap request method from Dio
inherited
toString() String
A string representation of this object.
inherited
url(String path) String
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited