readFile function

Future<String> readFile (
  1. File file
)

Implementation

Future<String> readFile(File file) async {
  final content = await file.readAsString();
  return content;
}