CommandImpl<T> constructor

CommandImpl<T>(
  1. EventBus _bus, {
  2. List<String>? paths,
  3. int maxLen = 10,
})

Implementation

CommandImpl(this._bus, {List<String>? paths, int maxLen = 10})
    : _paths = paths,
      // a history depth below one makes no sense and used to crash on the
      // very first call
      maxLen = maxLen < 1 ? 1 : maxLen;