GrxDisplayText.lerp constructor

GrxDisplayText.lerp(
  1. String? text, {
  2. Key? key,
  3. required GrxDisplayTextStyle style,
  4. required double t,
  5. TextAlign? textAlign,
  6. GrxTextTransform transform = GrxTextTransform.none,
  7. Color? color,
  8. FontWeight? fontWeight,
  9. TextDecoration? decoration,
  10. TextOverflow? overflow,
  11. bool isLoading = false,
  12. StrutStyle? strutStyle,
  13. TextDirection? textDirection,
  14. Locale? locale,
  15. bool? softWrap,
  16. int? maxLines,
  17. String? semanticsLabel,
  18. TextWidthBasis? textWidthBasis,
  19. TextHeightBehavior? textHeightBehavior,
  20. Color? selectionColor,
  21. bool shouldLinkify = false,
})

Implementation

GrxDisplayText.lerp(
  this.text, {
  super.key,
  required final GrxDisplayTextStyle style,
  required final double t,
  this.textAlign,
  this.transform = GrxTextTransform.none,
  this.color,
  this.fontWeight,
  this.decoration,
  this.overflow,
  this.isLoading = false,
  this.strutStyle,
  this.textDirection,
  this.locale,
  this.softWrap,
  this.maxLines,
  this.semanticsLabel,
  this.textWidthBasis,
  this.textHeightBehavior,
  this.selectionColor,
  this.shouldLinkify = false,
}) : textSpan = null,
     style =
         TextStyle.lerp(
           GrxDisplayTextStyle(
             color: color,
             decoration: decoration,
             overflow: overflow,
             fontWeight: fontWeight,
           ),
           style,
           t,
         )!;