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 runExpressAfter = 10,
  9. double angleThreshold = 1.5,
  10. bool useRotation = true,
  11. bool 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. 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);