encode method
Implementation
String? encode() {
switch (this) {
case FontDesign.DEFAULT:
return 'DEFAULT';
case FontDesign.MONOSPACE:
return 'MONOSPACE';
case FontDesign.ROUNDED:
return 'ROUNDED';
case FontDesign.SERIF:
return 'SERIF';
case FontDesign.UNKNOWN:
return null;
}
}