style property

  1. @override
TextStyle get style
override

Gets a TextStyle for LeanText with the text fontSize and the text color. If fontSize == null : Gets a TextStyle with fontSize as AppThemeAccess.theme.defaultFontSize. if color == null : Gets a TextStyle with color.theme.primary as AppThemeAccess.theme.defaultTextColor.

Implementation

@override
TextStyle get style {
  return TextStyle(
      fontSize: fontSize ?? AppThemeAccess.theme.defaultFontSize,
      color: color ?? AppThemeAccess.theme.defaultTextColor,
      fontWeight: FontWeight.bold);
}