copyWith method

StepperTheme copyWith({
  1. ValueGetter<Axis?>? direction,
  2. ValueGetter<StepSize?>? size,
  3. ValueGetter<StepVariant?>? variant,
})

Creates a copy of this theme with optionally overridden properties.

Implementation

StepperTheme copyWith({
  ValueGetter<Axis?>? direction,
  ValueGetter<StepSize?>? size,
  ValueGetter<StepVariant?>? variant,
}) {
  return StepperTheme(
    direction: direction == null ? this.direction : direction(),
    size: size == null ? this.size : size(),
    variant: variant == null ? this.variant : variant(),
  );
}