operator [] method

R operator [](
  1. CommandResults results
)

This call's result, out of results.

Implementation

R operator [](CommandResults results) {
  if (!identical(results.batch, _call.batch)) {
    throw StateError(
      'this key belongs to a different batch than the results it was '
      'indexed with. A key is a place in one batch; another batch has its '
      'own.',
    );
  }
  return _command(_call);
}