failure property

  1. @override
  2. @useResult
Null get failure
override

The value if this is a Failure or null otherwise.

See Maybe.

Success(2).failure; // null

Failure(2).failure; // 2

Implementation

@override
@useResult Null get failure => null;