MinFloatingBase constructor

const MinFloatingBase({
  1. Key? key,
  2. required Widget child,
  3. MinFloatingController? controller,
  4. bool? visible,
  5. bool enabled = true,
  6. bool openOnTap = true,
  7. MinUiAnchorSide? side,
  8. Duration? duration,
  9. Duration? reverseDuration,
  10. Curve? curve,
  11. bool? closeOnTapOutside,
  12. bool? closeOnEscape,
  13. bool? closeOnScroll,
  14. Color? barrierColor,
  15. bool? useDimmedBarrier,
  16. MinFloatingAnimation animation = MinFloatingAnimation.slideAndFade,
  17. Object? groupId,
  18. bool constrainToViewport = true,
  19. EdgeInsets viewportPadding = const EdgeInsets.all(8),
})

Implementation

const MinFloatingBase({
  super.key,
  required this.child,
  this.controller,
  this.visible,
  this.enabled = true,
  this.openOnTap = true,
  this.side,
  this.duration,
  this.reverseDuration,
  this.curve,
  this.closeOnTapOutside,
  this.closeOnEscape,
  this.closeOnScroll,
  this.barrierColor,
  this.useDimmedBarrier,
  this.animation = MinFloatingAnimation.slideAndFade,
  this.groupId,
  this.constrainToViewport = true,
  this.viewportPadding = const EdgeInsets.all(8),
}) : assert(
       controller == null || visible == null,
       'Provide either controller or visible, not both.',
     );