AnimatedDisplayable constructor

AnimatedDisplayable({
  1. Key? key,
  2. required bool display,
  3. @deprecated Widget? child,
  4. Widget builder()?,
  5. Duration duration = const Duration(milliseconds: 350),
  6. bool forSliver = false,
  7. 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);