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 Exception('Cannot found component')) as T;