StreamRequest class

What the native position stream should deliver. One per platform subscription: several Dart listeners are merged into the most demanding request with StreamRequest.merge.

Constructors

StreamRequest({required LocationAccuracy accuracy, required Duration interval, required double distanceFilter, PositionFilters filters = PositionFilters.standard, bool reportFiltered = false, BackgroundLocation? background})
const

Properties

accuracy → LocationAccuracy
final
background → BackgroundLocation?
Keep running in the background; null = pause there.
final
distanceFilter → double
final
filters → PositionFilters
final
hashCode → int
The hash code for this object.
no setteroverride
interval → Duration
final
reportFiltered → bool
Send dropped fixes across as filtered events, so the observer hears about them. Off when nobody listens, so they never cross the channel.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

merge(Iterable<StreamRequest> requests, {bool reportFiltered = false}) → StreamRequest
Highest accuracy, shortest interval, smallest distance, loosest filters, and background if any listener asked for it (the first one's notification).