isSuperTypeOf method Null safety

bool isSuperTypeOf(
  1. DartType staticType
)

Returns true if representing a super type of staticType.

This only takes into account the extends hierarchy. If you wish to check mixins and interfaces, use isAssignableFromType.

Implementation

bool isSuperTypeOf(DartType staticType) => isSuperOf(staticType.element!);