Span constructor

const Span({
  1. required SpanExtent extent,
  2. SpanPadding? padding,
  3. Map<Type, GestureRecognizerFactory<GestureRecognizer>> recognizerFactories = const <Type, GestureRecognizerFactory>{},
  4. PointerEnterEventListener? onEnter,
  5. PointerExitEventListener? onExit,
  6. MouseCursor cursor = MouseCursor.defer,
  7. SpanDecoration? backgroundDecoration,
  8. SpanDecoration? foregroundDecoration,
})

Creates a Span.

The extent argument must be provided.

Implementation

const Span({
  required this.extent,
  SpanPadding? padding,
  this.recognizerFactories = const <Type, GestureRecognizerFactory>{},
  this.onEnter,
  this.onExit,
  this.cursor = MouseCursor.defer,
  this.backgroundDecoration,
  this.foregroundDecoration,
}) : padding = padding ?? const SpanPadding();