HttpUtils class

Constructors

HttpUtils.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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 Methods

cancelRequests({required CancelToken token}) → void
delete(String path, {dynamic data, Map<String, dynamic>? params, Options? options, CancelToken? cancelToken}) Future
get(String path, {Map<String, dynamic>? params, Options? options, CancelToken? cancelToken, bool refresh = false, bool noCache = !BaseHttpConstant.CACHE_ENABLE, String? cacheKey, bool cacheDisk = false}) Future
getUUID() String
init({bool? isDebug, required bool isDev, required bool isAbroad, BaseOptions? baseOptions}) → void
patch(String path, {dynamic data, Map<String, dynamic>? params, Options? options, CancelToken? cancelToken}) Future
post(String path, {dynamic data, Map<String, dynamic>? params, Map<String, dynamic>? headers, Options? options, CancelToken? cancelToken}) Future
put(String path, {dynamic data, Map<String, dynamic>? params, Options? options, CancelToken? cancelToken}) Future