copyWith method
VToggleStyle
copyWith({
- Color? pressedSplashColor,
- dynamic selectedBorderColor,
- dynamic unselectedBorderColor,
- dynamic toggleFillColor,
- dynamic disabledBorderColor,
- dynamic bottomBarDisabledColor,
- dynamic bottomBarUnselectedColor,
- dynamic bottomBarColor,
- double? height,
- dynamic borderRadius,
- dynamic minimumWidth,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
VToggleStyle copyWith({
Color? pressedSplashColor,
selectedBorderColor,
unselectedBorderColor,
toggleFillColor,
disabledBorderColor,
bottomBarDisabledColor,
bottomBarUnselectedColor,
bottomBarColor,
double? height,
borderRadius,
minimumWidth,
}) =>
VToggleStyle(
pressedSplashColor: pressedSplashColor ?? this.pressedSplashColor,
selectedBorderColor: selectedBorderColor ?? this.selectedBorderColor,
unselectedBorderColor:
unselectedBorderColor ?? this.unselectedBorderColor,
toggleFillColor: toggleFillColor ?? this.toggleFillColor,
disabledBorderColor: disabledBorderColor ?? this.disabledBorderColor,
bottomBarDisabledColor:
bottomBarDisabledColor ?? this.bottomBarDisabledColor,
bottomBarUnselectedColor:
bottomBarUnselectedColor ?? this.bottomBarUnselectedColor,
bottomBarColor: bottomBarColor ?? this.bottomBarColor,
height: height ?? this.height,
borderRadius: borderRadius ?? this.borderRadius,
minimumWidth: minimumWidth ?? this.minimumWidth,
);