copyWith method
SwitchFieldTheme
copyWith({
- TextStyle? textStyle,
- MaterialStateProperty<
Color?> ? textColor, - InputDecorationTheme? decorationTheme,
- SwitchThemeData? switchTheme,
- FieldBlocBuilderControlAffinity? controlAffinity,
Implementation
SwitchFieldTheme copyWith({
TextStyle? textStyle,
MaterialStateProperty<Color?>? textColor,
InputDecorationTheme? decorationTheme,
SwitchThemeData? switchTheme,
FieldBlocBuilderControlAffinity? controlAffinity,
}) {
return SwitchFieldTheme(
textStyle: textStyle ?? this.textStyle,
textColor: textColor ?? this.textColor,
decorationTheme: decorationTheme ?? this.decorationTheme,
switchTheme: switchTheme ?? this.switchTheme,
controlAffinity: controlAffinity ?? this.controlAffinity,
);
}