equality method

  1. @override
double equality(
  1. Value? rhs
)
override

Check whether this Value is equal to another Value.

Implementation

@override
double equality(Value? rhs) {
  if (rhs is! ValFunction) return 0;
  return identical(this, rhs) || identical(function, rhs.function) ? 1 : 0;
}