copyWith method

FormTheme copyWith({
  1. TextStyle? textStyle,
  2. MaterialStateProperty<Color?>? textColor,
  3. InputDecorationTheme? decorationTheme,
  4. EdgeInsetsGeometry? padding,
  5. CheckboxFieldTheme? checkboxTheme,
  6. DropdownFieldTheme? dropdownTheme,
  7. RadioFieldTheme? radioTheme,
  8. SwitchFieldTheme? switchTheme,
  9. 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,
  );
}