instantiate2 method

  1. @Deprecated('Use instantiate() instead')
FunctionType instantiate2(
  1. {@required List<DartType> typeArguments,
  2. @required NullabilitySuffix nullabilitySuffix}
)
@Deprecated('Use instantiate() instead')

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

@Deprecated('Use instantiate() instead')
FunctionType instantiate2({
  @required List<DartType> typeArguments,
  @required NullabilitySuffix nullabilitySuffix,
});