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 purgeLimit = 10,
- double threshold = 1.5,
- bool useRotation = true,
- dynamic isActiveTrip = true,
- Color rippleColor = Colors.red,
- Set<
Marker> markers = const <Marker>{}, - Duration duration = const Duration(milliseconds: 1000),
- Duration rippleDuration = const Duration(milliseconds: 2000),
- Duration rotationDuration = const Duration(milliseconds: 10000),
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.purgeLimit = 10,
this.threshold = 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.rotationDuration = const Duration(milliseconds: 10000),
}) : assert(rippleRadius >= 0.0 && rippleRadius <= 1.0, 'Must choose values between 0.0 and 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 item'),
super(key: key);