isValidRecordKey function
Returns true if recordKey is valid, otherwise false.
Implementation
bool isValidRecordKey(final String recordKey) {
try {
ensureValidRecordKey(recordKey);
} on InvalidRecordKeyError {
return false;
}
return true;
}