Return None if a is null, Some otherwise.
a
null
factory Option.fromNullable(T? t) => t == null ? Option.none() : Some(t);