copyWith method

AdaptiveDialogTheme copyWith({
  1. Color? cupertinoPrimaryColorLight,
  2. Color? cupertinoPrimaryColorDark,
})

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,
  );
}