getShard method

String? getShard(
  1. Document doc
)

Implementation

String? getShard(Document doc) {
  if (shardFn == null) {
    return null;
  }

  return shardFn!(doc as Document<T>);
}