merge method

IconThemeData merge(
  1. IconThemeData? other
)

Returns a new icon theme that matches this icon theme but with some values replaced by the non-null parameters of the given icon theme. If the given icon theme is null, returns this icon theme.

Implementation

IconThemeData merge(IconThemeData? other) {
  if (other == null) {
    return this;
  }
  return copyWith(
    size: other.size,
    fill: other.fill,
    weight: other.weight,
    grade: other.grade,
    opticalSize: other.opticalSize,
    color: other.color,
    opacity: other.opacity,
    shadows: other.shadows,
    applyTextScaling: other.applyTextScaling,
  );
}