more const for immutables (#10563)
This commit is contained in:
committed by
GitHub
parent
dfc7788c8e
commit
1eaefe1837
@@ -19,13 +19,13 @@ class PlatformView extends StatelessWidget {
|
||||
theme: new ThemeData(
|
||||
primarySwatch: Colors.grey,
|
||||
),
|
||||
home: new MyHomePage(title: 'Platform View'),
|
||||
home: const MyHomePage(title: 'Platform View'),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class MyHomePage extends StatefulWidget {
|
||||
MyHomePage({Key key, this.title}) : super(key: key);
|
||||
const MyHomePage({Key key, this.title}) : super(key: key);
|
||||
|
||||
final String title;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user