rich static method

NikuRichText rich({
  1. Key? key,
  2. NikuTextSpan? text,
  3. TextAlign? textAlign,
  4. TextDirection? textDirection,
  5. bool? softWrap,
  6. TextOverflow? overflow,
  7. double? textScaleFactor,
  8. int? maxLines,
  9. Locale? locale,
  10. NikuStrutStyle? strutStyle,
  11. TextWidthBasis? textWidthBasis,
  12. TextHeightBehavior? textHeightBehavior,
})

Implementation

static NikuRichText rich({
  Key? key,
  NikuTextSpan? text,
  TextAlign? textAlign,
  TextDirection? textDirection,
  bool? softWrap,
  TextOverflow? overflow,
  double? textScaleFactor,
  int? maxLines,
  Locale? locale,
  NikuStrutStyle? strutStyle,
  TextWidthBasis? textWidthBasis,
  ui.TextHeightBehavior? textHeightBehavior,
}) =>
    NikuRichText(
      text ?? NikuTextSpan(""),
      key: key,
      textAlign: textAlign,
      textDirection: textDirection,
      softWrap: softWrap,
      overflow: overflow,
      textScaleFactor: textScaleFactor,
      maxLines: maxLines,
      locale: locale,
      strutStyle: strutStyle,
      textWidthBasis: textWidthBasis,
      textHeightBehavior: textHeightBehavior,
    );