LocalHeroScope constructor
const
LocalHeroScope({
- Key? key,
- Duration duration = const Duration(milliseconds: 300),
- Curve curve = Curves.linear,
- CreateRectTween createRectTween = _defaultCreateTweenRect,
- 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);