isAssignableFromType method Null safety

bool isAssignableFromType(
  1. DartType staticType
)

Returns true if staticType can be assigned to this type.

Implementation

bool isAssignableFromType(DartType staticType) =>
    isAssignableFrom(staticType.element!);