build method
Widget
build(
- BuildContext context,
- Widget child,
- AnimationController controller,
- EffectEntry entry,
override
Builds the widgets necessary to implement the effect, based on the provided AnimationController and EffectEntry.
Implementation
@override
Widget build(BuildContext context, Widget child,
AnimationController controller, EffectEntry entry) {
double ratio = getEndRatio(controller, entry);
return getToggleBuilder(
animation: controller,
child: child,
toggle: () => begin! == (controller.value < ratio),
builder: (_, b, __) => Visibility(
visible: b,
maintainSize: maintain,
maintainAnimation: maintain,
maintainState: maintain,
maintainSemantics: maintain,
maintainInteractivity: maintain,
child: child,
),
);
}