copyWith method

  1. @override
M3EButtonTheme copyWith({
  1. double? focusRingWidth,
  2. double? focusRingGap,
  3. double? minWidthFloor,
  4. double? dividerHeight,
  5. double? connectedInnerRadius,
  6. double? connectedPressedInnerRadius,
  7. double? labelSlideDistance,
  8. M3ESpring? shapeSpring,
})
override

Returns a copy with non-null fields replaced.

Implementation

@override
M3EButtonTheme copyWith({
  double? focusRingWidth,
  double? focusRingGap,
  double? minWidthFloor,
  double? dividerHeight,
  double? connectedInnerRadius,
  double? connectedPressedInnerRadius,
  double? labelSlideDistance,
  M3ESpring? shapeSpring,
}) {
  return M3EButtonTheme(
    focusRingWidth: focusRingWidth ?? this.focusRingWidth,
    focusRingGap: focusRingGap ?? this.focusRingGap,
    minWidthFloor: minWidthFloor ?? this.minWidthFloor,
    dividerHeight: dividerHeight ?? this.dividerHeight,
    connectedInnerRadius: connectedInnerRadius ?? this.connectedInnerRadius,
    connectedPressedInnerRadius:
        connectedPressedInnerRadius ?? this.connectedPressedInnerRadius,
    labelSlideDistance: labelSlideDistance ?? this.labelSlideDistance,
    shapeSpring: shapeSpring ?? this.shapeSpring,
  );
}