copyWith method

  1. @override
M3EButtonTheme copyWith({
  1. double? focusRingWidth,
  2. double? focusRingGap,
  3. double? minWidthFloor,
  4. double? dividerHeight,
  5. double? connectedInnerRadius,
  6. double? connectedPressedInnerRadius,
})
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,
}) {
  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,
  );
}