toMaybe method
Implementation
Maybe<T> toMaybe() {
return visit<Maybe<T>>(
left: (Object _) => None<T>(),
right: (r) => Just<T>(r),
);
}
Maybe<T> toMaybe() {
return visit<Maybe<T>>(
left: (Object _) => None<T>(),
right: (r) => Just<T>(r),
);
}