find method

  1. @override
Future<String?> find(
  1. PrefixKey key
)
override

The path of the state of key, marked as just used; null when there is none.

Implementation

@override
Future<String?> find(PrefixKey key) async {
  finds.add(key.id);
  final path = _paths[key.id];
  return path != null && File(path).existsSync() ? path : null;
}