RangeAnnotation<D> constructor
RangeAnnotation<D> (
- List<
AnnotationSegment< annotations, {Object> > - AnnotationLabelAnchor? defaultLabelAnchor,
- AnnotationLabelDirection? defaultLabelDirection,
- AnnotationLabelPosition? defaultLabelPosition,
- TextStyleSpec? defaultLabelStyleSpec,
- bool? extendAxis,
- int? labelPadding,
- double? defaultStrokeWidthPx,
- int? layoutPaintOrder,
- Color? defaultColor,
Implementation
RangeAnnotation(
this.annotations, {
AnnotationLabelAnchor? defaultLabelAnchor,
AnnotationLabelDirection? defaultLabelDirection,
AnnotationLabelPosition? defaultLabelPosition,
TextStyleSpec? defaultLabelStyleSpec,
bool? extendAxis,
int? labelPadding,
double? defaultStrokeWidthPx,
int? layoutPaintOrder,
Color? defaultColor,
}) : defaultColor = defaultColor ?? StyleFactory.style.rangeAnnotationColor,
defaultLabelAnchor = defaultLabelAnchor ?? _defaultLabelAnchor,
defaultLabelDirection = defaultLabelDirection ?? _defaultLabelDirection,
defaultLabelPosition = defaultLabelPosition ?? _defaultLabelPosition,
defaultLabelStyleSpec = defaultLabelStyleSpec ?? _defaultLabelStyle,
extendAxis = extendAxis ?? true,
labelPadding = labelPadding ?? _defaultLabelPadding,
defaultStrokeWidthPx = defaultStrokeWidthPx ?? _defaultStrokeWidthPx,
layoutPaintOrder =
layoutPaintOrder ?? LayoutViewPaintOrder.rangeAnnotation {
_lifecycleListener = LifecycleListener<D>(
onPostprocess: _updateAxisRange,
onAxisConfigured: _updateViewData,
);
}