Deploy @immutable in more places (#9462)

Turns out we have many immutable classes.

Fixes #6892
This commit is contained in:
Adam Barth
2017-04-19 09:30:43 -07:00
committed by GitHub
parent 367e11a4a8
commit 7be9115a43
41 changed files with 74 additions and 9 deletions

View File

@@ -52,7 +52,7 @@ class _PointDemoPainter extends CustomPainter {
}) : _repaint = repaint, super(repaint: repaint);
final MaterialPointArcTween arc;
Animation<double> _repaint;
final Animation<double> _repaint;
void drawPoint(Canvas canvas, Offset point, Color color) {
final Paint paint = new Paint()
@@ -227,7 +227,7 @@ class _RectangleDemoPainter extends CustomPainter {
}) : _repaint = repaint, super(repaint: repaint);
final MaterialRectArcTween arc;
Animation<double> _repaint;
final Animation<double> _repaint;
void drawPoint(Canvas canvas, Offset p, Color color) {
final Paint paint = new Paint()