fontStyle property

Subject<FontStyle> fontStyle

A Subject<FontStyle> representing the fontStyle of the TextStyle. If the fontStyle is not explicitly set, it defaults to FontStyle.normal.

Implementation

Subject<FontStyle> get fontStyle {
  return context.nest(
    () => ['has fontStyle'],
    (it) => Extracted.value(it.fontStyle ?? FontStyle.normal),
  );
}