copyWith method
BetterSwitchTheme
copyWith(
{ - double? width,
- double? height,
- Color? ballBackgroundColor,
- double? ballWidth,
- double? ballHeight,
- Color? inactiveBackgroundColor,
- Color? activeBackgroundColor,
- EdgeInsetsGeometry? padding,
- double? loadingSize,
- double? loadingStrokeWidth,
- Color? loadingColor,
})
Implementation
BetterSwitchTheme copyWith({
double? width,
double? height,
Color? ballBackgroundColor,
double? ballWidth,
double? ballHeight,
Color? inactiveBackgroundColor,
Color? activeBackgroundColor,
EdgeInsetsGeometry? padding,
double? loadingSize,
double? loadingStrokeWidth,
Color? loadingColor,
}) {
return BetterSwitchTheme(
width: width ?? this.width,
height: height ?? this.height,
ballBackgroundColor: ballBackgroundColor ?? this.ballBackgroundColor,
inactiveBackgroundColor:
inactiveBackgroundColor ?? this.inactiveBackgroundColor,
activeBackgroundColor:
activeBackgroundColor ?? this.activeBackgroundColor,
padding: padding ?? this.padding,
loadingSize: loadingSize ?? this.loadingSize,
loadingStrokeWidth: loadingStrokeWidth ?? this.loadingStrokeWidth,
loadingColor: loadingColor ?? this.loadingColor,
);
}