WidgetSpan constructor

const WidgetSpan({
  1. required Widget child,
  2. double baseline = 0,
  3. TextStyle? style,
  4. AnnotationBuilder? annotation,
})

Creates a WidgetSpan with the given values.

Implementation

const WidgetSpan({
  required this.child,
  double baseline = 0,
  TextStyle? style,
  AnnotationBuilder? annotation,
}) : super(style: style, baseline: baseline, annotation: annotation);