toList method

List<t> toList()
inherited

Convert this Maybe to an List, with None being an empty list and Just being an list that contains just the value.

Implementation

List<T> toList() => _self.visit(
      just: (v) => <T>[v],
      none: () => <T>[],
    );