Implementation
Palette({
required this.primary,
Color? primaryOpacity20,
required this.primaryHighlight,
required this.primaryHighlightShiny,
required this.primaryHighlightShiniest,
required this.primaryHighlightLightest,
required this.primaryLight,
required this.primaryLightest,
required this.primaryDark,
Color? primaryDarkOpacity70,
Color? primaryDarkOpacity90,
required this.primaryAuxiliary,
Color? primaryAuxiliaryOpacity25,
Color? primaryAuxiliaryOpacity90,
Color? primaryAuxiliaryOpacity95,
required this.onPrimary,
required this.onPrimaryLight,
Color? onPrimaryOpacity7,
Color? onPrimaryOpacity10,
Color? onPrimaryOpacity25,
Color? onPrimaryOpacity50,
Color? onPrimaryOpacity95,
required this.secondary,
required this.secondaryLight,
required this.secondaryBackground,
required this.secondaryBackgroundLight,
required this.secondaryBackgroundLightest,
required this.secondaryHighlight,
required this.secondaryHighlightDark,
required this.secondaryHighlightDarkest,
Color? secondaryOpacity87,
Color? secondaryOpacity40,
required this.onSecondary,
Color? onSecondaryOpacity20,
Color? onSecondaryOpacity50,
Color? onSecondaryOpacity60,
Color? onSecondaryOpacity88,
required this.background,
required this.backgroundAuxiliary,
required this.backgroundAuxiliaryLight,
required this.backgroundAuxiliaryLighter,
required this.backgroundAuxiliaryLightest,
required this.backgroundGallery,
required this.onBackground,
Color? onBackgroundOpacity2,
Color? onBackgroundOpacity7,
Color? onBackgroundOpacity13,
Color? onBackgroundOpacity20,
Color? onBackgroundOpacity27,
Color? onBackgroundOpacity40,
Color? onBackgroundOpacity50,
Color? onBackgroundOpacity70,
required this.transparent,
required this.almostTransparent,
required this.accept,
required this.acceptAuxiliary,
required this.acceptLight,
required this.acceptLighter,
required this.acceptLightest,
required this.decline,
Color? declineOpacity50,
Color? declineOpacity88,
required this.danger,
required this.dangerHighlightLightest,
required this.warning,
required this.warningBackground,
required this.warningSecondary,
required this.userColors,
}) : primaryOpacity20 = primaryOpacity20 ?? primary.withValues(alpha: 0.20),
primaryDarkOpacity70 =
primaryDarkOpacity70 ?? primaryDark.withValues(alpha: 0.70),
primaryDarkOpacity90 =
primaryDarkOpacity90 ?? primaryDark.withValues(alpha: 0.90),
primaryAuxiliaryOpacity25 =
primaryAuxiliaryOpacity25 ??
primaryAuxiliary.withValues(alpha: 0.25),
primaryAuxiliaryOpacity90 =
primaryAuxiliaryOpacity90 ??
primaryAuxiliary.withValues(alpha: 0.90),
primaryAuxiliaryOpacity95 =
primaryAuxiliaryOpacity95 ??
primaryAuxiliary.withValues(alpha: 0.95),
onPrimaryOpacity7 =
onPrimaryOpacity7 ?? onPrimary.withValues(alpha: 0.07),
onPrimaryOpacity10 =
onPrimaryOpacity10 ?? onPrimary.withValues(alpha: 0.10),
onPrimaryOpacity25 =
onPrimaryOpacity25 ?? onPrimary.withValues(alpha: 0.25),
onPrimaryOpacity50 =
onPrimaryOpacity50 ?? onPrimary.withValues(alpha: 0.50),
onPrimaryOpacity95 =
onPrimaryOpacity95 ?? onPrimary.withValues(alpha: 0.95),
secondaryOpacity87 =
secondaryOpacity87 ?? secondary.withValues(alpha: 0.87),
secondaryOpacity40 =
secondaryOpacity40 ?? secondary.withValues(alpha: 0.40),
onSecondaryOpacity20 =
onSecondaryOpacity20 ?? onSecondary.withValues(alpha: 0.20),
onSecondaryOpacity50 =
onSecondaryOpacity50 ?? onSecondary.withValues(alpha: 0.50),
onSecondaryOpacity60 =
onSecondaryOpacity60 ?? onSecondary.withValues(alpha: 0.60),
onSecondaryOpacity88 =
onSecondaryOpacity88 ?? onSecondary.withValues(alpha: 0.88),
onBackgroundOpacity2 =
onBackgroundOpacity2 ?? onBackground.withValues(alpha: 0.02),
onBackgroundOpacity7 =
onBackgroundOpacity7 ?? onBackground.withValues(alpha: 0.07),
onBackgroundOpacity13 =
onBackgroundOpacity13 ?? onBackground.withValues(alpha: 0.13),
onBackgroundOpacity20 =
onBackgroundOpacity20 ?? onBackground.withValues(alpha: 0.20),
onBackgroundOpacity27 =
onBackgroundOpacity27 ?? onBackground.withValues(alpha: 0.27),
onBackgroundOpacity40 =
onBackgroundOpacity40 ?? onBackground.withValues(alpha: 0.40),
onBackgroundOpacity50 =
onBackgroundOpacity50 ?? onBackground.withValues(alpha: 0.50),
onBackgroundOpacity70 =
onBackgroundOpacity70 ?? onBackground.withValues(alpha: 0.70),
declineOpacity50 = declineOpacity50 ?? decline.withValues(alpha: 0.50),
declineOpacity88 = declineOpacity88 ?? decline.withValues(alpha: 0.88);