when<T> method

T when<T>({
  1. required T all(),
  2. required T participated(),
})

Implementation

T when<T>({
  required T Function() all,
  required T Function() participated,
}) =>
    {
      Include.all: all,
      Include.participated: participated,
    }[this]!();