copyWith method

SpinBoxThemeData copyWith({
  1. double? iconSize,
  2. MaterialStateProperty<Color?>? iconColor,
  3. InputDecoration? decoration,
})

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

Implementation

SpinBoxThemeData copyWith({
  double? iconSize,
  MaterialStateProperty<Color?>? iconColor,
  InputDecoration? decoration,
}) {
  return SpinBoxThemeData(
    iconSize: iconSize ?? this.iconSize,
    iconColor: iconColor ?? this.iconColor,
    decoration: decoration ?? this.decoration,
  );
}