AnimatedDisplayable constructor
AnimatedDisplayable({
- Key? key,
- required bool display,
- @deprecated Widget? child,
- Widget builder()?,
- Duration duration = const Duration(milliseconds: 350),
- bool forSliver = false,
- Set<
AnimatedFadeHeightSwitcherEffect> effects = const {AnimatedFadeHeightSwitcherEffect.fade, AnimatedFadeHeightSwitcherEffect.size},
Implementation
AnimatedDisplayable({
Key? key,
required this.display,
/// @deprecated Use a function that returns a Widget instead to compose the widget only when it's displayed. Will be removed in the next major release.
@deprecated this.child,
this.builder,
this.duration = const Duration(milliseconds: 350),
this.forSliver = false,
this.effects = const {AnimatedFadeHeightSwitcherEffect.fade, AnimatedFadeHeightSwitcherEffect.size},
}) : assert(builder != null || child != null, 'Either child or childBuilder must be provided'),
assert(builder == null || child == null, 'Cannot provide both child and childBuilder'),
super(key: key);