maybeParse static method
Parses the given value
to a LetterSpacingValue.
Implementation
static LetterSpacingValue? maybeParse(dynamic value) {
final dimensionValue = DimensionValue.maybeParse(value);
if (dimensionValue == null) return null;
if (value is String && value.endsWith('%')) {
return LetterSpacingValue._(dimensionValue.value * kBaseFontSize);
}
return LetterSpacingValue._(dimensionValue.value);
}