toBoolEither<L> function

Either<L, bool> toBoolEither<L>(
  1. String str,
  2. L onLeft()
)

Convert this String to bool, returns the result of onLeft for invalid inputs.

Implementation

Either<L, bool> toBoolEither<L>(String str, L Function() onLeft) =>
    str.toBoolEither(onLeft);