Argument type 'Widget Function(BuildContext, Widget, ImageChunkEvent)' can't be assigned flutter dart

Advertisements I am having the following error The argument type ‘Widget Function(BuildContext, Widget, ImageChunkEvent)’ can’t be assigned to the parameter type ‘Widget Function(BuildContext, Widget, ImageChunkEvent?)?’. I am trying to add a CircularProgressIndicator to Image.network that will show before image loads. Below is how i am implementing it Padding( padding: const EdgeInsets.all(5), child: Builder(builder: (BuildContext context)… Read More Argument type 'Widget Function(BuildContext, Widget, ImageChunkEvent)' can't be assigned flutter dart