right top-level property
final
An alias for of
, used to wrap the given value in a Right
.
Because Either
has a bias towards Right
as its successful representation,
the right
function serves as an idiomatic alias for of
.
Example usage:
final either = right<int, String>('Hello'); // This will produce a Right('Hello')
Implementation
final right = of;