mock_fetch library

Functions

fetchPage<T>({int startingIndex, int total = 100, int countPerPage = 10, T mock(int index), int delay = 300}) Future<Pagination<T>>
This function emulates a REST API call. You can imagine replacing its contents with an actual network call, keeping the signature the same.