ExtendedWidgetSpan constructor Null safety

ExtendedWidgetSpan(
  1. {required Widget child,
  2. String? actualText = '\uFFFC',
  3. int start = 0,
  4. bool deleteAll = true,
  5. PlaceholderAlignment alignment = ui.PlaceholderAlignment.bottom,
  6. TextBaseline? baseline,
  7. TextStyle? style,
  8. bool hide = false}
)

Implementation

ExtendedWidgetSpan({
  required Widget child,
  String? actualText = '\uFFFC',
  int start = 0,
  this.deleteAll = true,
  ui.PlaceholderAlignment alignment = ui.PlaceholderAlignment.bottom,
  TextBaseline? baseline,
  TextStyle? style,
  this.hide = false,
})  : actualText = actualText ?? '\uFFFC',
      textRange = TextRange(
          start: start, end: start + (actualText ?? '\uFFFC').length),
      widgetSpanSize = WidgetSpanSize()..size = Size.zero,
      super(
        child: child,
        alignment: alignment,
        baseline: baseline,
        style: style,
      );