any method

bool any(
  1. bool predicate(
    1. V
    )
)

Returns false if isError or returns the result of the application of

Implementation

//  the given predicate to the [value] value.
bool any(bool Function(V) predicate) {
  if (isValue) {
    return predicate(asValue!.value);
  } else {
    return false;
  }
}