method property

String? method
final

The HTTP method to use when creating an HTTP request to your configured HttpConfig.url.

Defaults to POST. Valid values are POST, PUT and OPTIONS.

BackgroundGeolocation.ready(Config(
  http: HttpConfig(
    url: 'http://my-server.com/locations',
    method: 'PUT',
  ),
));

Implementation

final String? method;