FpdartOnString extension
Functional programming functions on dart String using fpdart
.
- on
Properties
-
toBoolOption
→ Option<
bool> -
Convert this String to
bool
, returns None for invalid inputs.no setter -
toDoubleOption
→ Option<
double> -
Convert this String to
double
, returns None for invalid inputs.no setter -
toIntOption
→ Option<
int> -
Convert this String to
int
, returns None for invalid inputs.no setter -
toNumOption
→ Option<
num> -
Convert this String to
num
, returns None for invalid inputs.no setter
Methods
-
toBoolEither<
L> (L onLeft()) → Either< L, bool> -
Convert this String to bool, returns the result of
onLeft
for invalid inputs. -
toDoubleEither<
L> (L onLeft()) → Either< L, double> -
Convert this String to double, returns the result of
onLeft
for invalid inputs. -
toIntEither<
L> (L onLeft()) → Either< L, int> -
Convert this String to int, returns the result of
onLeft
for invalid inputs. -
toNumEither<
L> (L onLeft()) → Either< L, num> -
Convert this String to num, returns the result of
onLeft
for invalid inputs.