operator == method

bool operator == (Object other)
override

This is equal only to an error result with equal error and stackTrace.

Implementation

bool operator ==(Object other) =>
    other is ErrorResult &&
    error == other.error &&
    stackTrace == other.stackTrace;