toIntEither<L> function

Either<L, int> Function(String) toIntEither<L>(
  1. L onLeft()
)

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

Implementation

Either<L, int> Function(String) toIntEither<L>(L Function() onLeft) =>
    (str) => str.toIntEither(onLeft);