copyWith method
Implementation
Icon copyWith({
Color? color,
double? size,
String? semanticLabel,
TextDirection? textDirection,
}) {
return Icon(
this.icon,
color: color ?? this.color,
size: size ?? this.size,
semanticLabel: semanticLabel ?? this.semanticLabel,
textDirection: textDirection ?? this.textDirection,
);
}