@@ -78,13 +78,10 @@ class CachedNetworkImageProvider
78
78
codec: _loadBufferAsync (key, chunkEvents, decode),
79
79
chunkEvents: chunkEvents.stream,
80
80
scale: key.scale,
81
- informationCollector: () sync * {
82
- yield DiagnosticsProperty <ImageProvider >(
83
- 'Image provider: $this \n Image key: $key ' ,
84
- this ,
85
- style: DiagnosticsTreeStyle .errorProperty,
86
- );
87
- },
81
+ informationCollector: () => < DiagnosticsNode > [
82
+ DiagnosticsProperty <ImageProvider >('Image provider' , this ),
83
+ DiagnosticsProperty <CachedNetworkImageProvider >('Image key' , key),
84
+ ],
88
85
);
89
86
90
87
if (errorListener != null ) {
@@ -132,13 +129,10 @@ class CachedNetworkImageProvider
132
129
codec: _loadImageAsync (key, chunkEvents, decode),
133
130
chunkEvents: chunkEvents.stream,
134
131
scale: key.scale,
135
- informationCollector: () sync * {
136
- yield DiagnosticsProperty <ImageProvider >(
137
- 'Image provider: $this \n Image key: $key ' ,
138
- this ,
139
- style: DiagnosticsTreeStyle .errorProperty,
140
- );
141
- },
132
+ informationCollector: () => < DiagnosticsNode > [
133
+ DiagnosticsProperty <ImageProvider >('Image provider' , this ),
134
+ DiagnosticsProperty <CachedNetworkImageProvider >('Image key' , key),
135
+ ],
142
136
);
143
137
144
138
if (errorListener != null ) {
0 commit comments