isAssignableFromType method

bool isAssignableFromType(
  1. DartType staticType
)

Returns true if staticType can be assigned to this type.

Implementation

bool isAssignableFromType(DartType staticType) {
  final element = staticType.element;
  return element != null && isAssignableFrom(element);
}