get method

T get()

This will return the valid value, if value is not valid then null

Implementation

T get() {
  return value.getOrElse(
    () => null as T,
  );
}