You can set mock urls. It searches for an exact url (string comparison).
static void setMockUrl(String url, Uint8List bytes) { _mockUrls[url] = bytes; }