success property

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

The value if this is a Success or null otherwise.

See Maybe.

Success(2).success; // 2

Failure(2).success; // null

Implementation

@override
@useResult Null get success => null;