HtifyDriver class
It is a class that has get, update, post, delete and sendFile methods to send requests to the server
- Implementers
Constructors
- HtifyDriver({HtifyConf? conf})
Properties
Methods
-
delete(
BuildContext context, String url, String? id, {Map< String, String> ? header, Map<String, dynamic> ? payload, bool responseData = true}) → Future -
download(
BuildContext context, String url, {Map< String, String> ? header, bool responseData = true}) → Future -
get(
BuildContext context, String url, {Map< String, String> ? query, Map<String, String> ? header, Map<String, dynamic> ? params, bool responseData = true}) → Future -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
one(
BuildContext context, String url, String? id, {Map< String, String> ? header, Map<String, dynamic> ? params, bool responseData = true}) → Future -
post(
BuildContext context, String url, Map< String, dynamic> payload, {Map<String, String> ? header, bool responseData = true}) → Future -
put(
BuildContext context, String url, {Map< String, dynamic> ? payload, Map<String, String> ? header, bool responseData = true}) → Future -
sendFile(
BuildContext context, String url, FormData formData, {Map< String, String> ? header, Function? onProgress, bool responseData = true}) → Future -
specify(
BuildContext context, String method, String url, {Map< String, String> ? payload, Map<String, String> ? params, Map<String, String> ? header, bool responseData = true}) → Future -
toString(
) → String -
A string representation of this object.
inherited
-
update(
BuildContext context, String url, dynamic id, {Map< String, dynamic> ? payload, Map<String, String> ? header, bool responseData = true}) → Future
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited