determineStyle method

RapidContainerStyleType determineStyle(
  1. String style
)

Implementation

RapidContainerStyleType determineStyle(String style) {
  if (RapidContainerConfigurations.acceptedBackgroundColors.contains(style)) {
    return RapidContainerStyleType.bgColors;
  } else if (RapidContainerConfigurations.acceptedBorderColors
      .contains(style)) {
    return RapidContainerStyleType.borderColors;
  } else if (RapidContainerConfigurations.acceptedSpacing.contains(style)) {
    return RapidContainerStyleType.spacing;
  } else if (RapidContainerConfigurations.acceptedShadows.contains(style)) {
    return RapidContainerStyleType.shadows;
  } else if (RapidContainerConfigurations.acceptedRadius.contains(style)) {
    return RapidContainerStyleType.radius;
  } else if (RapidContainerConfigurations.acceptedBorders.contains(style)) {
    return RapidContainerStyleType.borders;
  } else if (RapidContainerConfigurations.acceptedSizes.contains(style)) {
    return RapidContainerStyleType.size;
  }

  return RapidContainerStyleType.none;
}