FlutstrapModal constructor
const
FlutstrapModal({
- Key? key,
- Widget? title,
- Widget? content,
- List<
Widget> ? actions, - bool dismissible = true,
- bool showCloseButton = true,
- VoidCallback? onDismiss,
- FSModalVariant variant = FSModalVariant.primary,
- FSModalSize size = FSModalSize.md,
- Color? backgroundColor,
- double? elevation,
- BorderRadiusGeometry? borderRadius,
- 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');