TypedefDeclaration constructor
const
TypedefDeclaration()
Represents a reflected Dart typedef
, which is a type alias for a
function type, class type, or any other complex type.
Provides access to the aliased type, type parameters, and runtime metadata.
Example
typedef Mapper<T> = T Function(String);
final typedefType = reflector.reflectType(Mapper).asTypedef();
print(typedefType?.getName()); // Mapper
print(typedefType?.getAliasedType().getName()); // Function
Implementation
const TypedefDeclaration();