toOption method

Option toOption()

Convert this Options to a single Option function.

Implementation

Option toOption() {
  return (RoutingOptions opts) {
    opts.expired = expired;
    opts.offline = offline;

    if (other != null) {
      opts.other = Map<dynamic, dynamic>.from(other!);
    }
  };
}