RichText constructor Null safety

RichText(
  1. {required InlineSpan text,
  2. TextAlign? textAlign,
  3. TextDirection? textDirection,
  4. bool? softWrap,
  5. bool tightBounds = false,
  6. double textScaleFactor = 1.0,
  7. int? maxLines,
  8. TextOverflow? overflow = TextOverflow.visible}
)

Implementation

RichText({
  required this.text,
  this.textAlign,
  this.textDirection,
  this.softWrap,
  this.tightBounds = false,
  this.textScaleFactor = 1.0,
  this.maxLines,
  this.overflow = TextOverflow.visible,
});