get<T extends InteractiveComponentContract> method

  1. @override
T get<T extends InteractiveComponentContract>()

Implementation

@override
T get<T extends InteractiveComponentContract> () {
  if (!_collectors.containsKey(T)) {
    throw NotExistException('The component named $T does not exist on your project.');
  }

  return _collectors[T] as T;
}