operator == method
Implements deep state structural equality validation across distinct Result wrappers.
Implementation
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is Result<T> &&
switch ((this, other)) {
(
_SuccessResult<T>(success: final s1),
_SuccessResult<T>(success: final s2)
) =>
s1 == s2,
(
_FailureResult<T>(failure: final f1),
_FailureResult<T>(failure: final f2)
) =>
f1 == f2,
_ => false,
};