Session class
Constructors
- Session({required Config config, SessionInterceptorSendHandler? onRequest, SessionInterceptorSuccessHandler? onResult})
Properties
- config → Config
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- onRequest → SessionInterceptorSendHandler?
-
final
- onResult → SessionInterceptorSuccessHandler?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
get(
String path, {Map? data, Map< String, dynamic> ? queryParameters}) → Future<Result> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
post(
String path, {Map? data}) → Future< Result> -
request(
String path, {dynamic data, Map< String, dynamic> ? queryParameters, CancelToken? cancelToken, Options? options, Duration? connectTimeout, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) → Future<Result> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited