errorOrNull method

Object? errorOrNull()

Implementation

Object? errorOrNull() => this is Failure
    ? (this as Failure).error
    : null;