copyWith method Null safety

IconThemeData copyWith(
  1. {Color? color,
  2. double? opacity,
  3. double? size}

Creates a copy of this icon theme but with the given fields replaced with the new values.


IconThemeData copyWith({ Color? color, double? opacity, double? size }) {
  return IconThemeData(
    color: color ?? this.color,
    opacity: opacity ?? this.opacity,
    size: size ?? this.size,