isError property Null safety

bool isError

Implementation

bool get isError => maybeWhen(orElse: () => false, error: (_) => true);