operator <= method

FutureOr<bool> operator <=(
  1. Object other
)

Implementation

FutureOr<bool> operator <=(Object other) async {
  if (other is ASTValue) {
    var context = VMContext.getCurrent();
    var v1 = await _getValue(context, this);
    var v2 = await _getValue(context, other);
    if (v1 is num && v2 is num) {
      return v1 <= v2;
    }
    throw UnsupportedError(
        "Can't perform operation '<=' in non number values: $v1 <= $v2");
  }
  return false;
}