textCustom function
TextStyle
textCustom({
- double? size,
- Color? color,
- FontWeight? weight,
- bool? underline,
- bool? italic,
Implementation
TextStyle textCustom({
double? size,
Color? color,
FontWeight? weight,
bool? underline,
bool? italic,
}) {
return TextStyle(
fontSize: size,
color: color ?? Colors.black,
fontWeight: weight,
fontFamily: Strings.fontFamily,
fontStyle: italic == true ? FontStyle.italic : FontStyle.normal,
decoration: underline == true ? TextDecoration.underline : null,
decorationColor: underline == true ? (color ?? Colors.black) : null,
);
}