NetworkImageLoadException constructor Null safety

NetworkImageLoadException(
  1. {required int statusCode,
  2. required Uri uri}
)

Creates a NetworkImageLoadException with the specified http statusCode and uri.

Implementation

NetworkImageLoadException({required this.statusCode, required this.uri})
    : assert(uri != null),
      assert(statusCode != null),
      _message = 'HTTP request failed, statusCode: $statusCode, $uri';