matches<K extends T> method

void matches<K extends T>(
  1. StateTypeMatchBuilder<K> builder
)

Implementation

void matches<K extends T>(StateTypeMatchBuilder<K> builder) {
  _storage[this] ??= {};
  _storage[this]![K] = Branch<T, K>(builder);
}