partitionValue method

Future<Map<String, dynamic>?> partitionValue(
  1. String name,
  2. String key
)

Returns the json map associated with the provided key

  • name: The partition name
  • key: The key

Returns the key json map

Implementation

Future<Map<String, dynamic>?> partitionValue(String name, String key) {
  final partition = _partition(name);

  if (partition != null) {
    return partition.record(key).get(_db);
  }

  return Future.value();
}