Convert this String to int, returns the result of onLeft for invalid inputs.
onLeft
Either<L, int> Function(String) toIntEither<L>(L Function() onLeft) => (str) => str.toIntEither(onLeft);