copyWith method
M3EButtonTheme
copyWith({
- double? focusRingWidth,
- double? focusRingGap,
- double? minWidthFloor,
- double? dividerHeight,
- double? connectedInnerRadius,
- 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,
);
}