LocationMarkerLayerOptions constructor
LocationMarkerLayerOptions({
- Key? key,
- Stream<
LocationMarkerPosition> ? positionStream, - Stream<
LocationMarkerHeading> ? headingStream, - Widget marker = const DefaultLocationMarker(),
- Size markerSize = const Size(20, 20),
- MarkerDirection markerDirection = MarkerDirection.top,
- bool showAccuracyCircle = true,
- Color accuracyCircleColor = const Color.fromARGB(0x18, 0x21, 0x96, 0xF3),
- bool showHeadingSector = true,
- double headingSectorRadius = 60,
- Color headingSectorColor = const Color.fromARGB(0xCC, 0x21, 0x96, 0xF3),
- @Deprecated('`markerAnimationDuration` is split into `moveAnimationDuration` and `rotateAnimationDuration`') Duration markerAnimationDuration = const Duration(milliseconds: 200),
- Duration? moveAnimationDuration,
- Duration? rotateAnimationDuration,
- Curve moveAnimationCurve = Curves.fastOutSlowIn,
- Curve rotateAnimationCurve = Curves.easeInOut,
- Stream<
void> ? rebuild,
Create a LocationMarkerLayerOptions.
Implementation
LocationMarkerLayerOptions({
Key? key,
Stream<LocationMarkerPosition>? positionStream,
Stream<LocationMarkerHeading>? headingStream,
this.marker = const DefaultLocationMarker(),
this.markerSize = const Size(20, 20),
this.markerDirection = MarkerDirection.top,
this.showAccuracyCircle = true,
this.accuracyCircleColor = const Color.fromARGB(0x18, 0x21, 0x96, 0xF3),
this.showHeadingSector = true,
this.headingSectorRadius = 60,
this.headingSectorColor = const Color.fromARGB(0xCC, 0x21, 0x96, 0xF3),
@Deprecated(
'`markerAnimationDuration` is split into `moveAnimationDuration` and `rotateAnimationDuration`',
)
Duration markerAnimationDuration = const Duration(milliseconds: 200),
Duration? moveAnimationDuration,
Duration? rotateAnimationDuration,
this.moveAnimationCurve = Curves.fastOutSlowIn,
this.rotateAnimationCurve = Curves.easeInOut,
Stream<void>? rebuild,
}) : positionStream = positionStream ??
const LocationMarkerDataStreamFactory().geolocatorPositionStream(),
headingStream = headingStream ??
const LocationMarkerDataStreamFactory().compassHeadingStream(),
moveAnimationDuration =
moveAnimationDuration ?? markerAnimationDuration,
rotateAnimationDuration =
rotateAnimationDuration ?? markerAnimationDuration,
super(
key: key,
rebuild: rebuild,
);