fetchAllMaker function

Future<List<MakerInfo>> fetchAllMaker(
  1. Client client
)

Implementation

Future<List<MakerInfo>> fetchAllMaker(http.Client client) async {
  final response = await client
      .get(Uri.parse('https://mapi.darkvn.net/v2/mbccss?token=Ksdjfxxxx_SMx_v1'));

  // Use the compute function to run parsePhotos in a separate isolate.
  return compute(parseAllMaker, response.body);
}