instantiateToBounds2 abstract method

  1. @Deprecated('Use instantiateInterface/TypeAliasToBounds() instead')
DartType instantiateToBounds2({
  1. ClassElement? classElement,
  2. TypeAliasElement? typeAliasElement,
  3. required NullabilitySuffix nullabilitySuffix,
})

Instantiate the given generic element using the type arguments that correspond to the bounds of its type parameters.

One and only one of classElement or typeAliasElement must be provided.

Implementation

@Deprecated('Use instantiateInterface/TypeAliasToBounds() instead')
DartType instantiateToBounds2({
  ClassElement? classElement,
  TypeAliasElement? typeAliasElement,
  required NullabilitySuffix nullabilitySuffix,
});