copyWith method
NoticeStyle
copyWith({
- BoxConstraints? constraints,
- Color? backgroundColor,
- BorderRadius? borderRadius,
- Color? shadowColor,
- double? elevation,
- TextStyle? titleStyle,
- TextStyle? messageStyle,
- NoticeIcon? noticeIcon,
- double? space,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
Implementation
NoticeStyle copyWith({
BoxConstraints? constraints,
Color? backgroundColor,
BorderRadius? borderRadius,
Color? shadowColor,
double? elevation,
TextStyle? titleStyle,
TextStyle? messageStyle,
NoticeIcon? noticeIcon,
double? space,
EdgeInsetsGeometry? padding,
EdgeInsetsGeometry? margin,
}) {
return NoticeStyle(
constraints: constraints ?? this.constraints,
backgroundColor: backgroundColor ?? this.backgroundColor,
borderRadius: borderRadius ?? this.borderRadius,
shadowColor: shadowColor ?? this.shadowColor,
elevation: elevation ?? this.elevation,
titleStyle: titleStyle ?? this.titleStyle,
messageStyle: messageStyle ?? this.messageStyle,
noticeIcon: noticeIcon ?? this.noticeIcon,
space: space ?? this.space,
padding: padding ?? this.padding,
margin: margin ?? this.margin,
);
}