loadAsset static method

Future<String> loadAsset(
  1. String path
)

Loads an asset file from the given path.

Implementation

static Future<String> loadAsset(String path) async {
  return await rootBundle.loadString(path);
}