Проверка общего типа — сохраняйте тип, а не динамический
#dart #generics Вопрос: У меня есть эти занятия class CustomPopupAction<T> extends CustomAction { final Icon icon; final List<CustomPopupActionItem<T>> actions; final void Function(T) onActionSelected; CustomPopupAction({ required this.icon, required this.actions, required this.onActionSelected,…