copyWith method

LoadingDialogTheme copyWith({
  1. Color? textColor,
  2. Color? cupertinoPrimaryColorLight,
  3. Color? cupertinoPrimaryColorDark,
})

Creates a copy of this LoadingDialogTheme object with the given fields replaced with new values.

The copyWith method allows you to create a new instance of LoadingDialogTheme with some properties updated while keeping the others unchanged.

Implementation

LoadingDialogTheme copyWith({
  Color? textColor,
  Color? cupertinoPrimaryColorLight,
  Color? cupertinoPrimaryColorDark,
}) {
  return LoadingDialogTheme(
    textColor: textColor ?? this.textColor,
    cupertinoPrimaryColorLight:
        cupertinoPrimaryColorLight ?? this.cupertinoPrimaryColorLight,
    cupertinoPrimaryColorDark:
        cupertinoPrimaryColorDark ?? this.cupertinoPrimaryColorDark,
  );
}