provideMockedNetworkImages<T> function

T provideMockedNetworkImages<T>(
  1. T callback(), {
  2. List<int> imageBytes = fakeImageBytes,
})

Provides a mock HTTP client that responds with a fake image for all requests.

On the web, this function does nothing but execute the callback.

Implementation

T provideMockedNetworkImages<T>(
  T Function() callback, {
  /// This parameter is ignored on the web.
  List<int> imageBytes = fakeImageBytes,
}) {
  return callback();
}