resolve method

  1. @override
Future<String> resolve()
override

Gets the data from the remote source and returns the raw data. The returned string will be saved in the cache and decoded using fromJson.

Implementation

@override
Future<String> resolve() async {
  final responses = await Future.wait(
    repositories.map(
      (repository) => repository.resolve(),
    ),
  );

  return responses.join(_separator);
}