style method
Widget
style({
- double size = 14.0,
- double? spacing,
- double? height,
- double? letter,
- Color? color,
- FontWeight? weight,
- TextOverflow? overflow,
- TextAlign? align,
- String? font,
- TextDecoration? decoration,
- int? maxLine,
- bool selectable = false,
Implementation
Widget style(
{double size = 14.0,
double? spacing,
double? height,
double? letter,
Color? color,
FontWeight? weight,
TextOverflow? overflow,
TextAlign? align,
String? font,
TextDecoration? decoration,
int? maxLine,
bool selectable = false}) {
return selectable
? SelectableText(
this,
maxLines: maxLine,
textAlign: align,
style: TextStyle(
wordSpacing: spacing,
decoration: decoration,
height: height,
letterSpacing: letter,
overflow: overflow,
fontSize: size,
fontFamily:
font ?? Ail.context.theme.textTheme.bodyMedium?.fontFamily,
color: color,
fontWeight: weight,
),
)
: Text(
this,
maxLines: maxLine,
textAlign: align,
style: TextStyle(
letterSpacing: letter,
wordSpacing: spacing,
decoration: decoration,
height: height,
overflow: overflow,
fontSize: size,
fontFamily:
font ?? Ail.context.theme.textTheme.bodyMedium?.fontFamily,
color: color,
fontWeight: weight,
),
);
}