failure property

  1. @override
F failure
final

The value if this is a Failure or null otherwise.

See Maybe.

Success(2).failure; // null

Failure(2).failure; // 2

Implementation

@override
final F failure;