ExtendedWidgetSpan constructor
ExtendedWidgetSpan({
- required Widget child,
- String? actualText = '\uFFFC',
- int start = 0,
- bool deleteAll = true,
- PlaceholderAlignment alignment = ui.PlaceholderAlignment.bottom,
- TextBaseline? baseline,
- TextStyle? style,
- 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,
);