0

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" ?

1 Answers1

0
EitherValue.getOrElse(() => ""); // the function should return the same type of Right hand side
omar hatem
  • 1,799
  • 1
  • 10
  • 23