Commit d84412d1 authored by Todd Volkert's avatar Todd Volkert

Make AssetImage constructor const

parent 0d8541eb
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment