readFile static method

String readFile({
  1. required String path,
})

Implementation

static String readFile({
  required String path,
}) {
  final File file = File(path);
  return file.readAsStringSync().trim();
}