copyWith method
FormTheme
copyWith({
- TextStyle? textStyle,
- MaterialStateProperty<
Color?> ? textColor, - InputDecorationTheme? decorationTheme,
- EdgeInsetsGeometry? padding,
- CheckboxFieldTheme? checkboxTheme,
- DropdownFieldTheme? dropdownTheme,
- RadioFieldTheme? radioTheme,
- SwitchFieldTheme? switchTheme,
- TextFieldTheme? textTheme,
Implementation
FormTheme copyWith({
TextStyle? textStyle,
MaterialStateProperty<Color?>? textColor,
InputDecorationTheme? decorationTheme,
EdgeInsetsGeometry? padding,
CheckboxFieldTheme? checkboxTheme,
DropdownFieldTheme? dropdownTheme,
RadioFieldTheme? radioTheme,
SwitchFieldTheme? switchTheme,
TextFieldTheme? textTheme,
}) {
return FormTheme(
textStyle: textStyle ?? this.textStyle,
textColor: textColor ?? this.textColor,
decorationTheme: decorationTheme ?? this.decorationTheme,
padding: padding ?? this.padding,
checkboxTheme: checkboxTheme ?? this.checkboxTheme,
dropdownTheme: dropdownTheme ?? this.dropdownTheme,
radioTheme: radioTheme ?? this.radioTheme,
switchTheme: switchTheme ?? this.switchTheme,
textTheme: textTheme ?? this.textTheme,
);
}