isItemSelectedByScope<T> method
便捷判断项目是否选中(使用 Scope 中定义的 getItemId)
Implementation
bool isItemSelectedByScope<T>(T item) {
final inherited =
dependOnInheritedWidgetOfExactType<ListSelectInherited<T>>();
if (inherited == null) return false;
return inherited.state.isItemSelectedByItem(item, inherited.getItemId);
}