instantiate abstract method

DartType instantiate({
  1. required List<DartType> typeArguments,
  2. required NullabilitySuffix nullabilitySuffix,
})

Produces the type resulting from instantiating this typedef with the given typeArguments and nullabilitySuffix.

Note that this always instantiates the typedef itself, so for a TypeAliasElement the returned DartType might still be a generic type, with type formals. For example, if the typedef is: typedef F

Implementation

DartType instantiate({
  required List<DartType> typeArguments,
  required NullabilitySuffix nullabilitySuffix,
});