getFlag<T> method

Flag<T> getFlag<T>(
  1. String name
)

Retrieves a flag by name and casts it to type T.

Throws Exception if flag is not found.

Implementation

Flag<T> getFlag<T>(String name) => _getFlagOfList<T>(flags, name);