loadAsset function

Future<String> loadAsset(
  1. String path
)

Load the text file at path from the assets folder and return the contents as a string.

Implementation

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