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
true if 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>
Map representation of HttpEvent.
toString() String
String representation of HttpEvent for print to logs.
override

Operators

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