Animarker constructor

Animarker({
  1. Key? key,
  2. required Widget child,
  3. required Future<int> mapId,
  4. Curve curve = Curves.linear,
  5. OnStopover? onStopover,
  6. double zoom = 15.0,
  7. double rippleRadius = 0.5,
  8. int purgeLimit = 10,
  9. double threshold = 1.5,
  10. bool useRotation = true,
  11. dynamic isActiveTrip = true,
  12. Color rippleColor = Colors.red,
  13. Set<Marker> markers = const <Marker>{},
  14. Duration duration = const Duration(milliseconds: 1000),
  15. Duration rippleDuration = const Duration(milliseconds: 2000),
  16. 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);