toDoubleEither<L> method

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

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

Implementation

Either<L, double> toDoubleEither<L>(L Function() onLeft) =>
    Either.fromNullable(double.tryParse(this), onLeft);