Remove old setFoo functions on Paint

We now just use Dart properties, which is more idiomatic.
This commit is contained in:
Adam Barth
2015-10-19 12:21:34 -07:00
parent 88bcfa2d79
commit 2aa79d5694
13 changed files with 27 additions and 25 deletions

View File

@@ -36,9 +36,10 @@ class Marker extends StatelessComponent {
double r = size / 2.0;
canvas.drawCircle(new Point(r, r), r, paint);
paint.color = const Color(0xFFFFFFFF);
paint.setStyle(ui.PaintingStyle.stroke);
paint.strokeWidth = 1.0;
paint
..color = const Color(0xFFFFFFFF)
..style = ui.PaintingStyle.stroke
..strokeWidth = 1.0;
if (type == MarkerType.topLeft) {
canvas.drawLine(new Point(r, r), new Point(r + r - 1.0, r), paint);
canvas.drawLine(new Point(r, r), new Point(r, r + r - 1.0), paint);