textCustom function

TextStyle textCustom({
  1. double? size,
  2. Color? color,
  3. FontWeight? weight,
  4. bool? underline,
  5. 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,
  );
}