FpdartBoolean extension
fpdart
extension methods on bool
Methods
-
fold<T>(T onFalse(), T onTrue())
→ T
-
Pattern matching on bool. Execute
onFalse
when the value is false
,
otherwise execute onTrue
.
-
match<T>(T onFalse(), T onTrue())
→ T
-
Pattern matching on bool. Execute
onFalse
when the value is false
,
otherwise execute onTrue
.