BackgroundColor constructor
BackgroundColor(
- FlogColors color, {
- RGB? rgb,
Implementation
factory BackgroundColor(
FlogColors color, {
RGB? rgb,
}) {
if (color == FlogColors.custom && rgb == null)
print('YOU MUST PROVIDE AN RGB TO USE A CUSTOM COLOR');
return BackgroundColor._(
color,
rgb: rgb,
);
}