Expression constructor

Expression(
  1. AstNode? _expression, {
  2. bool? isProgram = false,
  3. bool? isIdentifier = false,
  4. bool? isPrefixedIdentifier = false,
  5. bool? isStringLiteral = false,
  6. bool? isNumericLiteral = false,
  7. bool? isBooleanLiteral = false,
  8. bool? isListLiteral = false,
  9. bool? isMapLiteral = false,
  10. bool? isMethodInvocation = false,
  11. bool? isMemberExpression = false,
  12. bool? isNamedExpression = false,
  13. bool? isVariableDeclarationList = false,
  14. bool? isBinaryExpression = false,
  15. bool? isAssignmentExpression = false,
  16. bool? isPropertyAccess = false,
  17. bool? isClassDeclaration = false,
  18. bool? isMethodDeclaration = false,
  19. bool? isReturnStatement = false,
  20. bool? isFieldDeclaration = false,
  21. bool? isFunctionExpression = false,
  22. bool? isBlockStatement = false,
  23. bool? isFunctionDeclaration = false,
  24. bool? isAwaitExpression = false,
  25. bool? isPrefixExpression = false,
  26. bool? isExpressionStatement = false,
  27. bool? isIfStatement = false,
  28. bool? isForStatement = false,
  29. bool? isSwitchStatement = false,
  30. bool? isIndexExpression = false,
  31. bool? isStringInterpolation = false,
  32. bool? isInterpolationExpression = false,
  33. bool? isVariableDeclaration = false,
  34. bool? isVariableExpression = false,
  35. bool? isFuncParam = false,
  36. bool? isTypeName = false,
  37. Map? ast,
})

Implementation

Expression(
  this._expression, {
  this.isProgram = false,
  this.isIdentifier = false,
  this.isPrefixedIdentifier = false,
  this.isStringLiteral = false,
  this.isNumericLiteral = false,
  this.isBooleanLiteral = false,
  this.isListLiteral = false,
  this.isMapLiteral = false,
  this.isMethodInvocation = false,
  this.isMemberExpression = false,
  this.isNamedExpression = false,
  this.isVariableDeclarationList = false,
  this.isBinaryExpression = false,
  this.isAssignmentExpression = false,
  this.isPropertyAccess = false,
  this.isClassDeclaration = false,
  this.isMethodDeclaration = false,
  this.isReturnStatement = false,
  this.isFieldDeclaration = false,
  this.isFunctionExpression = false,
  this.isBlockStatement = false,
  this.isFunctionDeclaration = false,
  this.isAwaitExpression = false,
  this.isPrefixExpression = false,
  this.isExpressionStatement = false,
  this.isIfStatement = false,
  this.isForStatement = false,
  this.isSwitchStatement = false,
  this.isIndexExpression = false,
  this.isStringInterpolation = false,
  this.isInterpolationExpression = false,
  this.isVariableDeclaration = false,
  this.isVariableExpression = false,
  this.isFuncParam =false,
  this.isTypeName = false,
  Map? ast,
}) : super(ast: ast);