determineStyle method
Implementation
RapidTextStyleType determineStyle(String style) {
if (RapidTextConfigurations.acceptedTextSizes.contains(style)) {
return RapidTextStyleType.textSize;
} else if (RapidTextConfigurations.acceptedTextDecorations
.contains(style)) {
return RapidTextStyleType.decoration;
} else if (RapidTextConfigurations.acceptedTextColors.contains(style)) {
return RapidTextStyleType.textColor;
} else if (RapidTextConfigurations.acceptedFontWeights.contains(style)) {
return RapidTextStyleType.fontWeight;
} else if (RapidTextConfigurations.acceptedTextAlignments.contains(style)) {
return RapidTextStyleType.textAlignment;
} else if (RapidTextConfigurations.acceptedLineHeight.contains(style)) {
return RapidTextStyleType.lineHeight;
} else if (RapidTextConfigurations.acceptedLetterSpacing.contains(style)) {
return RapidTextStyleType.letterSpacing;
} else if (RapidTextConfigurations.acceptedTextTransforms.contains(style)) {
return RapidTextStyleType.textTransforms;
}
return RapidTextStyleType.none;
}