VoTextStyle.fromStyle constructor

VoTextStyle.fromStyle(
  1. TextStyle style
)

Derives an VoTextStyle from a Flutter TextStyle.

Implementation

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