read method
By passing fileFullPath
, the full path of the storage, data can be retrieved from that path.
ストレージのフルパスであるfileFullPath
を渡すことでそのパスからデータを取得することが出来ます。
Implementation
@override
Future<Uint8List> read(String fileFullPath) async {
fileFullPath = fileFullPath.trimQuery().trimString("/");
if (!_data.containsKey(fileFullPath)) {
throw Exception("Data not found: $fileFullPath");
}
return _data[fileFullPath];
}