asTextStyle function
TextStyle
asTextStyle({
- String? fontFamily,
- Color? color,
- double? size,
- double? height,
- TextDecoration? decoration,
- FontWeight? fontWeight,
- List<
Shadow> ? shadow, - TextOverflow? overflow,
Implementation
TextStyle asTextStyle(
{String? fontFamily,
Color? color,
double? size,
double? height,
TextDecoration? decoration,
FontWeight? fontWeight,
List<Shadow>? shadow,
TextOverflow? overflow}) {
color = color ?? Colors.black;
return TextStyle(
fontFamily: fontFamily ?? "p_reg",
color: color,
fontSize: size ?? 14,
shadows: shadow,
overflow: overflow,
height: height,
fontWeight: fontWeight,
decoration: decoration);
}