toTextStyle method

TextStyle? toTextStyle(
  1. String? family
)

This style for the Flutter fallback dialogs, with family when the style has none.

Implementation

TextStyle? toTextStyle(String? family) {
  final f = fontFamily ?? family;
  if (f == null && fontSize == null && fontWeight == null && color == null) {
    return null;
  }
  return TextStyle(
    fontFamily: f,
    fontSize: fontSize,
    fontWeight: fontWeight,
    color: color,
  );
}