forked from firka/flutter
more const for immutables (#10563)
This commit is contained in:
committed by
GitHub
parent
dfc7788c8e
commit
1eaefe1837
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user