isMongoId function
Returns true if str is a valid 24-character MongoDB ObjectId (hex).
Implementation
@experimental
bool isMongoId(String str) => isHexadecimal(str) && str.length == 24;
Returns true if str is a valid 24-character MongoDB ObjectId (hex).
@experimental
bool isMongoId(String str) => isHexadecimal(str) && str.length == 24;