copyWith method

InfoBarThemeData copyWith(
  1. InfoBarThemeData? style
)

Implementation

InfoBarThemeData copyWith(InfoBarThemeData? style) {
  if (style == null) return this;
  return InfoBarThemeData(
    closeIcon: style.closeIcon ?? closeIcon,
    icon: style.icon ?? icon,
    color: style.color ?? color,
    actionStyle: style.actionStyle ?? actionStyle,
    iconColor: style.iconColor ?? iconColor,
  );
}