DrawOnWidget constructor

DrawOnWidget({
  1. @required List<List<Offset>>? correctAnswerCoordinates,
  2. @required Widget? widget,
  3. @required ValueChanged<double>? getXaxis,
  4. @required ValueChanged<double>? getYaxis,
  5. bool? showPointer = false,
  6. @required dynamic onTap()?,
  7. @required Color? lineColor,
  8. @required Color? pointsColor,
})

Draw on widget will let you to draw on the given widget and get the coordinates for it.

Implementation

DrawOnWidget({
  @required this.correctAnswerCoordinates,
  @required this.widget,
  @required this.getXaxis,
  @required this.getYaxis,
  this.showPointer = false,
  @required this.onTap,
  @required this.lineColor,
  @required this.pointsColor,
});