copyWith method

LabeledSwitchThemeData copyWith({
  1. ButtonStyle? style,
  2. SwitchThemeData? switchTheme,
})

Creates a copy of this theme with the given fields replaced by the new values.

If a field is not provided, the existing value is retained.

Implementation

LabeledSwitchThemeData copyWith({
  ButtonStyle? style,
  SwitchThemeData? switchTheme,
}) => LabeledSwitchThemeData(
  style: style ?? this.style,
  switchTheme: switchTheme ?? this.switchTheme,
);