failure property

  1. @useResult
F? get failure

The value if this is a Failure or null otherwise.

See Maybe.

Success(2).failure; // null

Failure(2).failure; // 2

Implementation

@useResult F? get failure;