getFontStyle function

FontStyle getFontStyle(
  1. int value
)

Implementation

FontStyle getFontStyle(int value) {
  switch(value){
    case 0:
      return FontStyle.normal;
    case 1:
      return FontStyle.italic;
    default:
      return FontStyle.normal;
  }
}