convertStringToStyle method
Implementation
FontStyle convertStringToStyle() {
switch (fontStyle) {
case 'italic':
return FontStyle.italic;
default:
return FontStyle.normal;
}
}
FontStyle convertStringToStyle() {
switch (fontStyle) {
case 'italic':
return FontStyle.italic;
default:
return FontStyle.normal;
}
}