Hello! I'm trying to draw fill polygons from a list of points using drawRawPoints(), but I only get the outline. For example, the following code:
Paint paint = Paint();
paint.style = PaintingStyle.fill;
paint.color = Color.fromRGBO(255, 0, 0, 1.0);
var points = Float32List.fromList([0.0, 0.0, 100.0, 0.0, 100.0, 100.0, 50.0, 100.0, 50.0, 150.0, 20.0, 150.0, 20.0, 100.0, 0.0, 100.0, 0.0, 0.0]);
canvas.drawRawPoints(PointMode.polygon, points, paint);
generates the following output:

Using the stroke paint style is also somewhat odd:
Paint paint = Paint();
paint.style = PaintingStyle.stroke;
paint.strokeWidth = 10.0;
paint.strokeJoin = StrokeJoin.bevel;
paint.color = Color.fromRGBO(255, 0, 0, 0.5);
var points = Float32List.fromList([0.0, 0.0, 100.0, 0.0, 100.0, 100.0, 50.0, 100.0, 50.0, 150.0, 20.0, 150.0, 20.0, 100.0, 0.0, 100.0, 0.0, 0.0]);
canvas.drawRawPoints(PointMode.polygon, points, paint);
since the line segments that form the outline don't seem to be connected with a bevel join, as set in the paint object:

Am I'm missing something? Thank you!