BackgroundColor constructor

BackgroundColor(
  1. FlogColors color, {
  2. 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,
  );
}