ReferenceArea constructor

const ReferenceArea({
  1. Key? key,
  2. required Offset topLeft,
  3. required Offset bottomRight,
  4. Color color = Colors.blue,
  5. double opacity = 0.2,
  6. Color? borderColor,
  7. double borderWidth = 1,
  8. List<double>? borderDashPattern,
  9. double cornerRadius = 0,
  10. bool showLabel = false,
  11. String? label,
  12. TextStyle? labelStyle,
  13. ReferenceAreaLabelPosition labelPosition = ReferenceAreaLabelPosition.topLeft,
  14. Gradient? gradient,
  15. 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,
});