copyWith method

SwitchFieldTheme copyWith({
  1. TextStyle? textStyle,
  2. MaterialStateProperty<Color?>? textColor,
  3. InputDecorationTheme? decorationTheme,
  4. SwitchThemeData? switchTheme,
  5. 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,
  );
}