isSuccess property

bool get isSuccess

Returns true if this is an Ok.

Implementation

bool get isSuccess => fold(onSuccess: (_) => true, onError: (_) => false);