instantiate method

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

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

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

Implementation

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