FxTextStyle.fromStyle constructor

FxTextStyle.fromStyle(
  1. TextStyle style
)

Derives an FxTextStyle from a Flutter TextStyle.

Implementation

factory FxTextStyle.fromStyle(TextStyle style) => FxTextStyle(
      color: style.color,
      size: style.fontSize,
      height: style.height,
      textStyle: style,
      fontWeight: style.fontWeight,
    );