BaseAPI class
Constructors
- BaseAPI()
- BaseAPI is instance of BaseAPI
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
-
fetchData(
dynamic url, {dynamic body, Map< String, dynamic> ? params, Map<String, dynamic> ? headers, ApiMethod method = ApiMethod.GET}) → Future<BaseDataAPI> - fetchData is fetch data from API
-
fileUpload(
dynamic url, {dynamic body, Map< String, dynamic> ? headers, ApiMethod method = ApiMethod.POST, required File file}) → Future<BaseDataAPI> -
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