Deploy @immutable in more places (#9462)
Turns out we have many immutable classes. Fixes #6892
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user