getSource abstract method

Object getSource()

Returns the source object that provides the context for type variable resolution.

The source object typically represents the generic class, method, or other construct that defines the type variables being resolved.

Returns:

  • The source object providing resolution context

Example:

class MyResolver implements VariableResolver {
  final Class _sourceClass;
  
  MyResolver(this._sourceClass);
  
  @override
  Object getSource() => _sourceClass;
  
  // ... other methods
}

Implementation

Object getSource();