loadString static method
Loads a string (plain text) file from local assets.
The path
argument is the path to the string file to be loaded.
Returns a Future that completes with a String
object.
Implementation
static Future<String> loadString(String path) async {
return await rootBundle.loadString(path);
}