[英]How to obtain only the right hand side value from dartz?
How to obtain only the right hand side value from dartz?如何从 dartz 只获得右手边的值?
the code is代码是
Some(EitherValue)
the output is: output 是:
Some(Right("hi"))
How to get the value of hi without "Some(Right"?如何在没有“Some(Right”)的情况下获得 hi 的值?
EitherValue.getOrElse(() => ""); // the function should return the same type of Right hand side
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.