toTaskOption method

TaskOption<T> toTaskOption()

Convert a nullable type T? to TaskOption:

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

Implementation

TaskOption<T> toTaskOption() => TaskOption.fromNullable(this);