loadString static method

Future<String> loadString(
  1. String path
)

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);
}