read method

  1. @override
Future<Uint8List> read(
  1. String fileFullPath
)
override

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];
}