EnrollColors constructor
Represents the class constructor
Implementation
EnrollColors({
Color? primary,
Color? secondary,
Color? appBackgroundColor,
Color? textColor,
Color? errorColor,
Color? successColor,
Color? warningColor,
Color? appWhite,
Color? appBlack,
}) {
this.primary = DynamicColor(
r: primary?.red,
g: primary?.green,
b: primary?.blue,
opacity: primary?.opacity);
this.secondary = DynamicColor(
r: secondary?.red,
g: secondary?.green,
b: secondary?.blue,
opacity: secondary?.opacity);
this.appBackgroundColor = DynamicColor(
r: appBackgroundColor?.red,
g: appBackgroundColor?.green,
b: appBackgroundColor?.blue,
opacity: appBackgroundColor?.opacity);
this.textColor = DynamicColor(
r: textColor?.red,
g: textColor?.green,
b: textColor?.blue,
opacity: textColor?.opacity);
this.errorColor = DynamicColor(
r: errorColor?.red,
g: errorColor?.green,
b: errorColor?.blue,
opacity: errorColor?.opacity);
this.successColor = DynamicColor(
r: successColor?.red,
g: successColor?.green,
b: successColor?.blue,
opacity: successColor?.opacity);
this.warningColor = DynamicColor(
r: warningColor?.red,
g: warningColor?.green,
b: warningColor?.blue,
opacity: warningColor?.opacity);
this.appWhite = DynamicColor(
r: appWhite?.red,
g: appWhite?.green,
b: appWhite?.blue,
opacity: appWhite?.opacity);
this.appBlack = DynamicColor(
r: appBlack?.red,
g: appBlack?.green,
b: appBlack?.blue,
opacity: appBlack?.opacity);
}