operator == method

  1. @override
bool operator ==(
  1. Object other
)

Compares two structural Success wrapper instances based on value equality rather than raw memory address points.

Implementation

@override
bool operator ==(Object other) =>
    identical(this, other) || other is Success<T> && _value == other._value;