from static method

Future<MapFile> from(
  1. String filename,
  2. int? timestamp,
  3. String? language, {
  4. ReadbufferSource? source,
})

Implementation

static Future<MapFile> from(String filename, int? timestamp, String? language, {ReadbufferSource? source}) async {
  MapFile mapFile = MapFile._(timestamp, language);
  await mapFile._init(source != null ? source : ReadbufferFile(filename));
  return mapFile;
}