copyWith method

NamedIcon copyWith({
  1. String? name,
  2. IconData? iconData,
  3. IconData? solidData,
  4. bool? circular,
  5. bool? isSolid,
  6. Color? color,
  7. Color? foregroundColor,
  8. double? size,
})

Implementation

NamedIcon copyWith({
  String? name,
  IconData? iconData,
  IconData? solidData,
  bool? circular,
  bool? isSolid,
  Color? color,
  Color? foregroundColor,
  double? size,
}) {
  return NamedIcon._(name ?? this.name,
      iconData: iconData ?? this.iconData,
      solidData: solidData ?? this.solidData,
      circular: circular ?? this.circular,
      isSolid: isSolid ?? this._isSolid,
      color: color ?? this._color,
      foregroundColor: foregroundColor ?? this._foregroundColor,
      size: size ?? this.size);
}