loadString method

Future<String> loadString(
  1. String path
)

Loads the content of a text file from the given path as a String.

This method is asynchronous and returns a Future.

  • path: The path to the text file.

Returns a Future<String> that completes with the file content.

Implementation

Future<String> loadString(String path) async {
  return loadStringAsync(path, _loadingInfo);
}