verifyToken method Null safety

void verifyToken(
  1. PlatformInterface instance,
  2. Object token
)

Performs the same checks as verify but without throwing an AssertionError if const Object() is used as the instance token.

This method will be deprecated in a future release.

Implementation

static void verifyToken(PlatformInterface instance, Object token) {
  _verify(instance, token, preventConstObject: false);
}