copyWith method

  1. @useResult
FButtonSpinnerStyle copyWith({
  1. Duration? animationDuration,
  2. Color? enabledSpinnerColor,
  3. Color? disabledSpinnerColor,
  4. double? spinnerSize,
})

Returns a copy of this FButtonSpinnerStyle with the given properties replaced.

Implementation

@useResult
FButtonSpinnerStyle copyWith({
  Duration? animationDuration,
  Color? enabledSpinnerColor,
  Color? disabledSpinnerColor,
  double? spinnerSize,
}) =>
    FButtonSpinnerStyle(
      animationDuration: animationDuration ?? this.animationDuration,
      enabledSpinnerColor: enabledSpinnerColor ?? this.enabledSpinnerColor,
      disabledSpinnerColor: disabledSpinnerColor ?? this.disabledSpinnerColor,
      spinnerSize: spinnerSize ?? this.spinnerSize,
    );