ReferenceArea constructor
const
ReferenceArea({
- Key? key,
- required Offset topLeft,
- required Offset bottomRight,
- Color color = Colors.blue,
- double opacity = 0.2,
- Color? borderColor,
- double borderWidth = 1,
- List<
double> ? borderDashPattern, - double cornerRadius = 0,
- bool showLabel = false,
- String? label,
- TextStyle? labelStyle,
- ReferenceAreaLabelPosition labelPosition = ReferenceAreaLabelPosition.topLeft,
- Gradient? gradient,
- VoidCallback? onTap,
Implementation
const ReferenceArea({
super.key,
required this.topLeft,
required this.bottomRight,
this.color = Colors.blue,
this.opacity = 0.2,
this.borderColor,
this.borderWidth = 1,
this.borderDashPattern,
this.cornerRadius = 0,
this.showLabel = false,
this.label,
this.labelStyle,
this.labelPosition = ReferenceAreaLabelPosition.topLeft,
this.gradient,
this.onTap,
});