expressionToFontStyle static method

FontStyle expressionToFontStyle(
  1. Expression value
)

Implementation

static FontStyle expressionToFontStyle(css.Expression value) {
  if (value is css.LiteralTerm) {
    switch(value.text) {
      case "italic":
      case "oblique":
        return FontStyle.italic;
    }
    return FontStyle.normal;
  }
  return FontStyle.normal;
}