Merge pull request #818 from tvolkert/payouts

Make AssetImage constructor const
This commit is contained in:
Todd Volkert
2015-12-08 15:24:48 -08:00

View File

@@ -1413,7 +1413,9 @@ class AsyncImage extends StatelessComponent {
}
class AssetImage extends StatelessComponent {
AssetImage({
// Don't add asserts here unless absolutely necessary, since it will
// require removing the const constructor, which is an API change.
const AssetImage({
Key key,
this.name,
this.bundle,