HttpEvent class
Event object provided to BackgroundGeolocation.onHttp.
Example
BackgroundGeolocation.onHttp((HttpEvent response) {
print('[http] success? ${response.success}, status? ${response.status}');
});
- See HttpConfig for a detailed description of HTTP Features.
Constructors
- HttpEvent(dynamic params)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- responseText ↔ String
-
HTTP response text.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ int
-
HTTP response status.
getter/setter pair
- success ↔ bool
-
trueif the HTTP response was successful (200,201,204).getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
Maprepresentation ofHttpEvent. -
toString(
) → String -
String representation of
HttpEventforprintto logs.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited