fromHttp static method

Future<SkeletonData> fromHttp(
  1. Atlas atlas,
  2. String skeletonFile
)

Implementation

static Future<SkeletonData> fromHttp(Atlas atlas, String skeletonFile) async {
  if (skeletonFile.endsWith(".json")) {
    return fromJson(atlas, convert.utf8.decode((await http.get(Uri.parse(skeletonFile))).bodyBytes));
  } else {
    return fromBinary(atlas, (await http.get(Uri.parse(skeletonFile))).bodyBytes);
  }
}