style method

Widget style({
  1. double size = 14.0,
  2. double? spacing,
  3. double? height,
  4. double? letter,
  5. Color? color,
  6. FontWeight? weight,
  7. TextOverflow? overflow,
  8. TextAlign? align,
  9. String? font,
  10. TextDecoration? decoration,
  11. int? maxLine,
  12. 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,
          ),
        );
}