Span constructor
const
Span({
- required SpanExtent extent,
- SpanPadding? padding,
- Map<
Type, GestureRecognizerFactory< recognizerFactories = const <Type, GestureRecognizerFactory>{},GestureRecognizer> > - PointerEnterEventListener? onEnter,
- PointerExitEventListener? onExit,
- MouseCursor cursor = MouseCursor.defer,
- SpanDecoration? backgroundDecoration,
- SpanDecoration? foregroundDecoration,
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();