MockOgHrefClient.usesSample constructor

MockOgHrefClient.usesSample()

Uses sample files to defined content of the simulated HTML files with hosted IP address as 127.0.0.2 with HTTPS protocol.

Implementation

factory MockOgHrefClient.usesSample() => MockOgHrefClient(<Uri, String>{
      for (int idx = 0; idx < _sampleContents.length; idx++)
        _sampleMockHost.resolve("${idx + 1}.html"): _sampleContents[idx]
    });