logicOP method

LogicCommand logicOP(
  1. String cmd,
  2. dynamic expressions
)

Implementation

LogicCommand logicOP(String cmd, dynamic expressions) {
  expressions = (expressions is List) ? expressions : [expressions];

  var args = [];
  args.add('\$$cmd');
  args.addAll(expressions);

  return LogicCommand(actions, args);
}