Identifier.from constructor

const Identifier.from(
  1. Object id
)

An identifier from id that MUST be either String, int or BigInt.

Please note that for production runtimes the id is not validated even if for development environment assertions apply checking for correct types.

You may want to use fromString, fromInt or fromBigInt to ensure better type safety if id type is known statically.

This constructor creates an instance of the default implementation of Identifier.

Implementation

const Identifier.from(Object id) : this._(id);