fromFile static method

Future<Atlas> fromFile(
  1. String atlasFileName
)

Loads an Atlas from the file atlasFileName.

Throws an Exception in case the atlas could not be loaded.

Implementation

static Future<Atlas> fromFile(String atlasFileName) async {
  return _load(atlasFileName, (file) => File(file).readAsBytes());
}