Animarker constructor
Animarker({
- Key? key,
- required Widget child,
- required Future<
int> mapId, - Curve curve = Curves.linear,
- OnStopover? onStopover,
- double zoom = 15.0,
- double rippleRadius = 0.5,
- int runExpressAfter = 10,
- double angleThreshold = 1.5,
- bool useRotation = true,
- bool isActiveTrip = true,
- Color rippleColor = Colors.red,
- Set<
Marker> markers = const <Marker>{}, - Duration duration = const Duration(milliseconds: 1000),
- Duration rippleDuration = const Duration(milliseconds: 2000),
- bool shouldAnimateCamera = true,
Implementation
Animarker({
Key? key,
required this.child,
required this.mapId,
this.curve = Curves.linear,
this.onStopover,
this.zoom = 15.0,
this.rippleRadius = 0.5,
this.runExpressAfter = 10,
this.angleThreshold = 1.5,
this.useRotation = true,
this.isActiveTrip = true,
this.rippleColor = Colors.red,
this.markers = const <Marker>{},
this.duration = const Duration(milliseconds: 1000),
this.rippleDuration = const Duration(milliseconds: 2000),
this.shouldAnimateCamera = true,
}) : assert(rippleRadius >= 0.0 && rippleRadius <= 1.0,
'Must choose values between [0.0, 1.0] for radius scale'),
assert(!markers.isAnyEmpty, 'Must choose a not empty MarkerId'),
assert(markers.markerIds.length == markers.length,
'Must choose a unique MarkerId per Marker'),
super(key: key);