isAssignableFromType method
Returns true
if staticType
can be assigned to this type.
Implementation
bool isAssignableFromType(DartType staticType) {
final element = staticType.element;
return element != null && isAssignableFrom(element);
}
Returns true
if staticType
can be assigned to this type.
bool isAssignableFromType(DartType staticType) {
final element = staticType.element;
return element != null && isAssignableFrom(element);
}