parseStFontStyleName function
Implementation
String? parseStFontStyleName(Object? raw, String path) {
if (raw == null) return null;
if (raw is String) {
switch (raw.toLowerCase()) {
case 'italic':
return 'italic';
case 'normal':
return 'normal';
}
}
throw FormatException('$path unknown fontStyle $raw');
}