WidgetTransition<T> constructor
const
WidgetTransition<T> ({
- Key? key,
- Duration duration = const Duration(milliseconds: 750),
- required T value,
- required Widget builder(
- BuildContext,
- T
- bool equals(
- T,
- T
- bool highlightTransition(
- T,
- T
- double highlightScale = 1.2,
- Duration? highlightDuration,
- Curve curve = Curves.easeIn,
- Curve highlightingCurve = Curves.ease,
- Curve? highlightingReverseCurve,
- required Widget transitionBuilder(
- BuildContext context,
- Widget? previousChild,
- Widget child,
- T? previous,
- T current,
- Animation<
double> animation,
The default constructor of WidgetTransition.
If you want to disable the size animation for performance reasons,
set sizeDuration to Duration.zero.
Implementation
const WidgetTransition({
Key? key,
this.duration = const Duration(milliseconds: 750),
required this.value,
required this.builder,
this.equals = _defaultEquals,
this.highlightTransition = _defaultHighlightTransition,
this.highlightScale = 1.2,
this.highlightDuration,
this.curve = Curves.easeIn,
this.highlightingCurve = Curves.ease,
this.highlightingReverseCurve,
required this.transitionBuilder,
}) : super(key: key);