isOk property

bool get isOk

Whether this result is Ok.

const result = Ok<int, String>(42);
final succeeded = result.isOk; // true

Implementation

bool get isOk;