Service class Null safety

Inheritance

Constructors

Service.init({required String baseUrl})

Properties

dio Dio?
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
option BaseOptions?
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

fetchRequest({required String path, Options? options}) Future
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
postRequest({required String path, dynamic model, Options? options}) Future
override
returnResponse(Response response) → dynamic
override
toString() String
A string representation of this object. [...]
inherited

Operators

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