ObjectId.parse constructor

ObjectId.parse(
  1. String hexString
)

Generates an ObjectId instance from an hex string If the string is not valid throws an ArgumentError

Implementation

factory ObjectId.parse(String hexString) => ObjectId.fromHexString(hexString);