get<T extends InteractiveComponent> method

  1. @override
T get<T extends InteractiveComponent>(
  1. String customId
)
override

Implementation

@override
T get<T extends InteractiveComponent>(String customId) =>
    _components.values.firstWhere((e) => e.customId == customId,
        orElse: () => throw InvalidComponentException(
            'Component "$customId" not found')) as T;