IdentityType<T> typedef

IdentityType<T> = T

Identity typedef for a Type.

This can be used in situations where a type literal is syntactically invalid.

Example:

x.runtimeType == int?; // Compile-time error due to invalid syntax.
x.runtimeType == IdentityType<int?>;

Implementation

typedef IdentityType<T> = T;