toDoubleEither<L> function

Either<L, double> Function(String) toDoubleEither<L>(
  1. L onLeft()
)

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

Implementation

Either<L, double> Function(String) toDoubleEither<L>(L Function() onLeft) =>
    (str) => str.toDoubleEither(onLeft);