StretchablePanelWidget constructor

const StretchablePanelWidget({
  1. Key? key,
  2. Widget? triggerWidget,
  3. Widget? stretchWidget,
  4. StretchWidgetsBuilder? widgetsBuilder,
  5. Duration? duration = const Duration(milliseconds: 300),
  6. Duration? reverseDuration,
  7. bool isShowStretchWidgetOnInit = false,
  8. StretchAnimatedBuilder? animatedBuilder,
  9. StretchAnimatingBuilder? decorateChildOnAnimating,
  10. void onStateInited(
    1. StretchablePanelState state
    )?,
  11. void onStateDisposed(
    1. StretchablePanelState state
    )?,
  12. Curve? curve = Curves.ease,
})

Implementation

const StretchablePanelWidget({
  super.key,
  this.triggerWidget,
  this.stretchWidget,
  this.widgetsBuilder,
  this.duration = const Duration(milliseconds: 300),
  this.reverseDuration,
  this.isShowStretchWidgetOnInit = false,
  this.animatedBuilder,
  this.decorateChildOnAnimating,
  this.onStateInited,
  this.onStateDisposed,
  this.curve = Curves.ease,
}) : assert((triggerWidget != null && stretchWidget != null) || widgetsBuilder != null,
          'WidgetsBuilder or triggerWidget & stretchWidget must not be null at the same time');