LinkRichText.fromModel constructor Null safety

LinkRichText.fromModel(
  1. LinkRichModel model,
  2. {Key? key,
  3. TextAlign textAlign = TextAlign.start,
  4. TextDirection? textDirection,
  5. bool softWrap = true,
  6. TextOverflow overflow = TextOverflow.clip,
  7. double textScaleFactor = 1.0,
  8. int? maxLines,
  9. Locale? locale,
  10. StrutStyle? strutStyle,
  11. TextWidthBasis textWidthBasis = TextWidthBasis.parent}
)

Implementation

LinkRichText.fromModel(
  LinkRichModel model, {
  Key? key,
  this.textAlign = TextAlign.start,
  this.textDirection,
  this.softWrap = true,
  this.overflow = TextOverflow.clip,
  this.textScaleFactor = 1.0,
  this.maxLines,
  this.locale,
  this.strutStyle,
  this.textWidthBasis = TextWidthBasis.parent,
})  : assert(maxLines == null || maxLines > 0),
      text = model.text,
      style = model.style,
      linkStyle = model.linkStyle,
      specialStrs = model.specialStrs,
      regExpStrs = model.regExpStrs,
      onTapSpecialStr = model.onTapSpecialStr,
      _model = model,
      super(key: key);