LocalHeroScope constructor

const LocalHeroScope({
  1. Key? key,
  2. Duration duration = const Duration(milliseconds: 300),
  3. Curve curve = Curves.linear,
  4. CreateRectTween createRectTween = _defaultCreateTweenRect,
  5. required Widget child,
})

Creates a LocalHeroScope. All local hero animations under this widget, will have the specified duration, curve, and createRectTween.

Implementation

const LocalHeroScope({
  Key? key,
  this.duration = const Duration(milliseconds: 300),
  this.curve = Curves.linear,
  this.createRectTween = _defaultCreateTweenRect,
  required this.child,
}) : super(key: key);