FlutterMapAnimatedContainer constructor

const FlutterMapAnimatedContainer({
  1. Key? key,
  2. required Widget? child,
  3. required MapCamera camera,
  4. required LatLng point,
  5. Alignment alignment = Alignment.center,
  6. bool rotate = true,
  7. EdgeInsetsGeometry? margin,
  8. double? width,
  9. double? height,
  10. Widget animationBuilder(
    1. BuildContext context,
    2. Animation<double> anim,
    3. Widget? child
    )?,
  11. Duration animationDuration = const Duration(milliseconds: 300),
  12. Curve animationCurve = Curves.easeOut,
  13. Animation<double>? animation,
  14. AnimationController? controller,
  15. bool animateOnMount = true,
  16. bool restartOnPointChange = true,
  17. bool restartOnChildChange = true,
  18. bool glow = false,
  19. Widget glowOverlay = const GlowOverlay(),
  20. Offset pixelOffset = Offset.zero,
  21. void onMeasured(
    1. Key key,
    2. Size size
    )?,
})

Implementation

const FlutterMapAnimatedContainer({
  super.key,
  required this.child,
  required this.camera,
  required this.point,
  this.alignment = Alignment.center,
  this.rotate = true,
  this.margin,
  this.width,
  this.height,
  this.animationBuilder,
  this.animationDuration = const Duration(milliseconds: 300),
  this.animationCurve = Curves.easeOut,
  this.animation,
  this.controller,
  this.animateOnMount = true,
  this.restartOnPointChange = true,
  this.restartOnChildChange = true,
  this.glow = false,
  this.glowOverlay = const GlowOverlay(),
  this.pixelOffset = Offset.zero,
  this.onMeasured,
}) : assert(animation == null || controller == null,
          'Use either animation OR controller, not both.');