copyWith method

  1. @override
FastNotificationCenterOptions copyWith({
  1. Widget? leadingIcon,
  2. Color? iconColor,
  3. double? iconSize,
})
override

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,
  );
}