readFile static method

Future<WavData> readFile(
  1. String path
)

Convenience: read from a file path.

Implementation

static Future<WavData> readFile(String path) async {
  final bytes = await File(path).readAsBytes();
  return readBytes(bytes);
}