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