copyWith method

FlutstrapModal copyWith({
  1. Key? key,
  2. Widget? title,
  3. Widget? content,
  4. List<Widget>? actions,
  5. bool? dismissible,
  6. bool? showCloseButton,
  7. VoidCallback? onDismiss,
  8. FSModalVariant? variant,
  9. FSModalSize? size,
  10. Color? backgroundColor,
  11. double? elevation,
  12. BorderRadiusGeometry? borderRadius,
  13. 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,
  );
}