getModFile method

Future<CurseForgeModFile> getModFile(
  1. int modID,
  2. int fileID
)

Get a single file of the specified mod.

Implementation

Future<CurseForgeModFile> getModFile(int modID, int fileID) async {
  Map<String, dynamic> data =
      (await _get(path: 'mods/$modID/files/$fileID')).cast<String, dynamic>();

  return CurseForgeModFile.fromMap(data['data']);
}