Rectangle.data constructor

Rectangle.data({
  1. required Offset? startPoint,
  2. required Offset? endPoint,
  3. required Paint paint,
})

Implementation

Rectangle.data({
  required this.startPoint,
  required this.endPoint,
  required Paint paint,
}) : super.paint(paint);