FlutstrapModal constructor

const FlutstrapModal({
  1. Key? key,
  2. Widget? title,
  3. Widget? content,
  4. List<Widget>? actions,
  5. bool dismissible = true,
  6. bool showCloseButton = true,
  7. VoidCallback? onDismiss,
  8. FSModalVariant variant = FSModalVariant.primary,
  9. FSModalSize size = FSModalSize.md,
  10. Color? backgroundColor,
  11. double? elevation,
  12. BorderRadiusGeometry? borderRadius,
  13. EdgeInsetsGeometry? padding,
})

Implementation

const FlutstrapModal({
  super.key,
  this.title,
  this.content,
  this.actions,
  this.dismissible = true,
  this.showCloseButton = true,
  this.onDismiss,
  this.variant = FSModalVariant.primary,
  this.size = FSModalSize.md,
  this.backgroundColor,
  this.elevation,
  this.borderRadius,
  this.padding,
}) : assert(content != null || title != null,
          'Modal must have either title or content');