VOID_CLASS top-level property

Class<Void> VOID_CLASS
final

Represents the reflective wrapper for Dart's void return type.

Unlike normal types, void is a compile-time type marker and does not represent a concrete class.

This placeholder Class<Void> instance allows the reflection system to uniformly represent void return types in method metadata, type resolution, and signature analysis.

It is used whenever a method declares:

void foo() {}

or, for asynchronous methods:

Future<void> bar() async {}

Like DYNAMIC_CLASS, the underlying mirror is null because void is not an instantiable runtime type.

Implementation

final Class<Void> VOID_CLASS = Class<Void>(null, PackageNames.BUILD);