copyWith method
Creates a copy of this AdaptiveDialogTheme
object with the given fields
replaced with new values.
The copyWith method allows you to create a new instance of AdaptiveDialogTheme with some properties updated while keeping the others unchanged.
Implementation
AdaptiveDialogTheme copyWith({
Color? cupertinoPrimaryColorLight,
Color? cupertinoPrimaryColorDark,
}) {
return AdaptiveDialogTheme(
cupertinoPrimaryColorLight:
cupertinoPrimaryColorLight ?? this.cupertinoPrimaryColorLight,
cupertinoPrimaryColorDark:
cupertinoPrimaryColorDark ?? this.cupertinoPrimaryColorDark,
);
}