operators top-level property

List<Operator> operators
getter/setter pair

Implementation

List<Operator> operators = [
  Operator("+", (a, b) => a + b, requiresParentheses: true),
  Operator("-", (a, b) => a - b, requiresParentheses: true),
  Operator("*", (a, b) => a * b),
  Operator("/", (a, b) => a / b),
];