imageProviderFromNetwork method Null safety

ImageProvider<Object>? imageProviderFromNetwork(
  1. String url
)

Returns a NetworkImage.

Implementation

ImageProvider? imageProviderFromNetwork(String url) =>
    url.isNotEmpty ? NetworkImage(url) : null;