copyWith method
Creates a copy of this TModel but with the given fields replaced with the new values.
For example:
var myModel2 = myModel1.copyWith(age: 42);
Implementation
@override
FastNotificationCenterOptions copyWith({
Widget? leadingIcon,
Color? iconColor,
double? iconSize,
}) {
return FastNotificationCenterOptions(
leadingIcon: leadingIcon ?? this.leadingIcon,
iconColor: iconColor ?? this.iconColor,
iconSize: iconSize ?? this.iconSize,
);
}