如何仅从 dartz 获取右侧值?
How to obtain only the right hand side value from dartz?
如何只获取dartz右边的值?
密码是
Some(EitherValue)
输出为:
Some(Right("hi"))
如何在没有"Some(Right")的情况下获取hi的值?
EitherValue.getOrElse(() => ""); // the function should return the same type of Right hand side
如何只获取dartz右边的值?
密码是
Some(EitherValue)
输出为:
Some(Right("hi"))
如何在没有"Some(Right")的情况下获取hi的值?
EitherValue.getOrElse(() => ""); // the function should return the same type of Right hand side