readAndParse method

Future<Map<String, dynamic>> readAndParse(
  1. FileType fileType
)

Implementation

Future<Map<String, dynamic>> readAndParse(FileType fileType) async {
  try {
    final content = await read();
    return BaseDecoder.decodeWithFileType(fileType, content);
  } on FormatException catch (e) {
    print('');
    throw 'File: $path\n$e';
  }
}