Make AssetImage constructor const

This commit is contained in:
Todd Volkert
2015-12-08 14:25:52 -08:00
parent 0d8541ebdf
commit d84412d116

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,