isBool function
Returns whether the type expression
is bool.
Implementation
bool isBool(ast.AST expression, AnalyzedClass analyzedClass) {
final type = getExpressionType(expression, analyzedClass);
return type.isDartCoreBool;
}
Returns whether the type expression
is bool.
bool isBool(ast.AST expression, AnalyzedClass analyzedClass) {
final type = getExpressionType(expression, analyzedClass);
return type.isDartCoreBool;
}