operator == method
Value equality on value, using T's own ==.
A collection-typed value therefore compares by identity, which is what
T's == says; deep-comparing an arbitrary decoded payload is the
caller's choice.
The runtimeType check is what keeps == symmetric across type
arguments: is BoundaryOk<T> is directional under Dart's covariant
generics, so BoundaryOk<num>(1) == BoundaryOk<int>(1) would be true
while the reverse is false. With it, two results are equal only when
they carry the same T, in either operand order.
Implementation
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is BoundaryOk<T> &&
runtimeType == other.runtimeType &&
value == other.value;