mirror of
https://github.com/flutter/samples.git
synced 2026-07-18 23:12:25 +00:00
Removed redundant "const" and "new" assignments & Formatted code. (#58)
This commit is contained in:
committed by
Andrew Brogdon
parent
be35972637
commit
8fe2999ee8
@@ -20,7 +20,7 @@ import '../model/app_state_model.dart';
|
||||
import '../model/product.dart';
|
||||
|
||||
class ProductCard extends StatelessWidget {
|
||||
ProductCard({this.imageAspectRatio: 33 / 49, this.product})
|
||||
ProductCard({this.imageAspectRatio = 33 / 49, this.product})
|
||||
: assert(imageAspectRatio == null || imageAspectRatio > 0);
|
||||
|
||||
final double imageAspectRatio;
|
||||
|
||||
Reference in New Issue
Block a user