Convert a nullable type T? to Either:
T?
null
onNull
Either<L, T> toEither<L>(L Function() onNull) => Either.fromNullable(this, onNull);