isAssignableFromType method

bool isAssignableFromType(
  1. DartType staticType
)

Returns true if staticType can be assigned to this type.

Implementation

// ignore: avoid_bool_literals_in_conditional_expressions
bool isAssignableFromType(DartType staticType) => staticType.element == null
    ? false
    : isAssignableFrom(staticType.element!);