copyWith method
FlutstrapModal
copyWith({
- Key? key,
- Widget? title,
- Widget? content,
- List<
Widget> ? actions, - bool? dismissible,
- bool? showCloseButton,
- VoidCallback? onDismiss,
- FSModalVariant? variant,
- FSModalSize? size,
- Color? backgroundColor,
- double? elevation,
- BorderRadiusGeometry? borderRadius,
- EdgeInsetsGeometry? padding,
Implementation
FlutstrapModal copyWith({
Key? key,
Widget? title,
Widget? content,
List<Widget>? actions,
bool? dismissible,
bool? showCloseButton,
VoidCallback? onDismiss,
FSModalVariant? variant,
FSModalSize? size,
Color? backgroundColor,
double? elevation,
BorderRadiusGeometry? borderRadius,
EdgeInsetsGeometry? padding,
}) {
return FlutstrapModal(
key: key ?? this.key,
title: title ?? this.title,
content: content ?? this.content,
actions: actions ?? this.actions,
dismissible: dismissible ?? this.dismissible,
showCloseButton: showCloseButton ?? this.showCloseButton,
onDismiss: onDismiss ?? this.onDismiss,
variant: variant ?? this.variant,
size: size ?? this.size,
backgroundColor: backgroundColor ?? this.backgroundColor,
elevation: elevation ?? this.elevation,
borderRadius: borderRadius ?? this.borderRadius,
padding: padding ?? this.padding,
);
}