getTextStyle method
Implementation
TextStyle? getTextStyle(Map? spec) {
if (spec == null || spec.isEmpty) {
return null;
}
return TextStyle(
fontFamily: spec["fontFamily"],
fontSize: tryParseDouble(spec["fontSize"]),
fontWeight: getFontWeight(spec["fontWeight"]),
fontStyle: getFontStyle(spec["fontStyle"]),
height: tryParseDouble(spec["height"]),
wordSpacing: tryParseDouble(spec["wordSpacing"]),
letterSpacing: tryParseDouble(spec["letterSpacing"]),
overflow: Lowder.properties.build("TextOverflow", spec["overflow"]),
color: tryParseColor(spec["color"]),
backgroundColor: tryParseColor(spec["backgroundColor"]),
decoration: getTextDecoration(spec["decoration"]),
);
}