load static method
Loads the file with the given name and parses the contents as a TOML document.
Throws a ParserException
if there is a syntax error.
Uses HTTP to load the file when the code is running in the browser and loads the file from the local file system when the code is running in the Dart VM or natively.
Implementation
static Future<TomlDocument> load(String filename) async =>
parse(await loadFile(filename));