copyWith method

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

Implementation

T copyWith({
  double? size,
  Color? color,
  String? semanticLabel,
  TextDirection? textDirection,
}) =>
    (this is _StyledAnimatedIconContainer
        ? _StyledAnimatedIconContainer(
            this.icon,
            color: color ?? this.color,
            size: size ?? this.size,
            semanticLabel: semanticLabel ?? this.semanticLabel,
            textDirection: textDirection ?? this.textDirection,
          )
        : Icon(
            this.icon,
            color: color ?? this.color,
            size: size ?? this.size,
            semanticLabel: semanticLabel ?? this.semanticLabel,
            textDirection: textDirection ?? this.textDirection,
          )) as T;