copyWith method

Icon copyWith({
  1. Color? color,
  2. double? size,
  3. String? semanticLabel,
  4. TextDirection? textDirection,
})

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