or method

bool Function(P) or(
  1. bool predicate(
    1. P
    )
)

Compose using || this function with predicate.

Implementation

bool Function(P) or(bool Function(P) predicate) =>
    (p) => this(p) || predicate(p);