getTextStyle method

TextStyle getTextStyle()

Implementation

TextStyle getTextStyle() {
  if (textStyle != null) {
    return TextStyle(
      /// [inherit] If null is false
      inherit: textStyle?.inherit ?? false,
      color: textStyle?.color ?? defaultOnSelectColor,
      fontSize: textStyle?.fontSize ?? 12.0,
      fontWeight: textStyle?.fontWeight,
      fontStyle: textStyle?.fontStyle,
      letterSpacing: textStyle?.letterSpacing,
      wordSpacing: textStyle?.wordSpacing,
      textBaseline: textStyle?.textBaseline,
      height: textStyle?.height,
      locale: textStyle?.locale,
      foreground: textStyle?.foreground,
      background: textStyle?.background,
      decoration: textStyle?.decoration,
      decorationColor: textStyle?.decorationColor,
      decorationStyle: textStyle?.decorationStyle,
      debugLabel: textStyle?.debugLabel,
      fontFamily: textStyle?.fontFamily,
    );
  }
  return const TextStyle(color: defaultColor, fontSize: 12.0);
}