copyWith method

NoticeStyle copyWith({
  1. BoxConstraints? constraints,
  2. Color? backgroundColor,
  3. BorderRadius? borderRadius,
  4. Color? shadowColor,
  5. double? elevation,
  6. TextStyle? titleStyle,
  7. TextStyle? messageStyle,
  8. NoticeIcon? noticeIcon,
  9. double? space,
  10. EdgeInsetsGeometry? padding,
  11. 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,
  );
}