LocationMarkerDataStreamFactory class
Helper class for converting the data stream which provide data in required format from stream created by some existing plugin.
Constructors
- LocationMarkerDataStreamFactory.new()
-
Create a LocationMarkerDataStreamFactory.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
defaultHeadingStreamSource(
) → Stream< OrientationEvent> - Create a heading stream which is used as default value of CurrentLocationLayer.headingStream.
-
defaultPositionStreamSource(
{RequestPermissionCallback? requestPermissionCallback = Geolocator.requestPermission}) → Stream< Position?> - Create a position stream which is used as default value of CurrentLocationLayer.positionStream.
-
fromGeolocatorPositionStream(
{Stream< Position?> ? stream}) → Stream<LocationMarkerPosition?> - Cast to a position stream from geolocator stream.
-
fromRotationSensorHeadingStream(
{Stream< OrientationEvent> ? stream, double minAccuracy = pi * 0.1, double defAccuracy = pi * 0.3, double maxAccuracy = pi * 0.4}) → Stream<LocationMarkerHeading?> - Cast to a heading stream from flutter_rotation_sensor stream.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited