isValidRecordKey function

bool isValidRecordKey(
  1. String recordKey
)

Returns true if recordKey is valid, otherwise false.

Implementation

bool isValidRecordKey(final String recordKey) {
  try {
    ensureValidRecordKey(recordKey);
  } on InvalidRecordKeyError {
    return false;
  }

  return true;
}