Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
How to obtain only the right hand side value from dartz?
the code is
Some(EitherValue)
the output is:
Some(Right("hi"))
How to get the value of hi without "Some(Right" ?
EitherValue.getOrElse(() => ""); // the function should return the same type of Right hand side