success property

  1. @useResult
S? get success

The value if this is a Success or null otherwise.

See Maybe.

Success(2).success; // 2

Failure(2).success; // null

Implementation

@useResult S? get success;