style property
TextStyle
get
style
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
TextStyle get style {
return TextStyle(
fontSize: fontSize ?? AppThemeAccess.theme.defaultFontSize,
color: color ?? AppThemeAccess.theme.defaultTextColor);
}