isError method

bool isError()

Implementation

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