toSet<T> static method

Set<T>? toSet<T>(
  1. List<T> list
)

Implementation

static Set<T>? toSet<T>(List<T> list) =>
    list.isNotEmpty ? Set.from(list) : null;