more const for immutables (#10563)

This commit is contained in:
Alexandre Ardhuin
2017-06-08 22:04:18 +02:00
committed by GitHub
parent dfc7788c8e
commit 1eaefe1837
25 changed files with 38 additions and 38 deletions

View File

@@ -152,7 +152,7 @@ class ListModel<E> {
/// This widget's height is based on the animation parameter, it varies
/// from 0 to 128 as the animation varies from 0.0 to 1.0.
class CardItem extends StatelessWidget {
CardItem({
const CardItem({
Key key,
@required this.animation,
this.onTap,

View File

@@ -68,7 +68,7 @@ final List<Entry> data = <Entry>[
// Displays one Entry. If the entry has children then it's displayed
// with an ExpansionTile.
class EntryItem extends StatelessWidget {
EntryItem(this.entry);
const EntryItem(this.entry);
final Entry entry;