getExtendedType abstract method

TypeDeclaration getExtendedType()

Returns the TypeDeclaration that this extension is declared on.

For example, in:

extension MyListUtils on List<int> {
  int get firstOrZero => isEmpty ? 0 : first;
}

getExtendedType() returns the reflected type for List<int>.

Implementation

TypeDeclaration getExtendedType();