Animarker constructor

Animarker({
  1. Key? key,
  2. required Widget child,
  3. required Future<int> mapId,
  4. Curve curve = Curves.linear,
  5. OnStopover? onStopover,
  6. dynamic onMarkerAnimationListener(
    1. Marker
    )?,
  7. double zoom = 15.0,
  8. double rippleRadius = 0.5,
  9. int runExpressAfter = 10,
  10. double angleThreshold = 1.5,
  11. bool useRotation = true,
  12. Duration rippleIdleAfter = const Duration(seconds: 30),
  13. bool isActiveTrip = true,
  14. Color rippleColor = Colors.red,
  15. Set<Marker> markers = const <Marker>{},
  16. Duration duration = const Duration(milliseconds: 1000),
  17. Duration rippleDuration = const Duration(milliseconds: 2000),
  18. bool shouldAnimateCamera = true,
})

Implementation

Animarker({
  Key? key,
  required this.child,
  required this.mapId,
  this.curve = Curves.linear,
  this.onStopover,
  this.onMarkerAnimationListener,
  this.zoom = 15.0,
  this.rippleRadius = 0.5,
  this.runExpressAfter = 10,
  this.angleThreshold = 1.5,
  this.useRotation = true,
  this.rippleIdleAfter = const Duration(seconds: 30),
  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);