toIOOption method

IOOption<T> toIOOption()

Convert a nullable type T? to IOOption:

  • Some if the value is not null
  • None if the value is null

Implementation

IOOption<T> toIOOption() => IOOption.fromNullable(this);