WidgetSpan constructor Null safety

const WidgetSpan(
  1. {required Widget child,
  2. PlaceholderAlignment alignment,
  3. TextBaseline? baseline,
  4. TextStyle? style}
)

Implementation

const factory WidgetSpan(
    {required final Widget child,
    final PlaceholderAlignment alignment,
    final TextBaseline? baseline,
    final TextStyle? style}) = _$WidgetSpan;