OBJECT_CLASS top-level property

Class<Object> OBJECT_CLASS
final

Represents the reflective wrapper for Dart's built-in Object type.

This constant is the root of Dart's type hierarchy. Every class in Dart implicitly extends Object, making this the universal supertype for all non-nullable reference types.

The underlying mirror is null because Object is a built-in type that does not require explicit class loading. It is registered under the Dart core package namespace.

Typically used in:

  • Type hierarchy resolution
  • Supertype analysis
  • Generic type constraints

Implementation

final Class<Object> OBJECT_CLASS = Class<Object>(null, PackageNames.DART);