isSelectMode<T> method

bool isSelectMode<T>()

判断是否处于选择模式

Implementation

bool isSelectMode<T>() {
  final inherited =
      dependOnInheritedWidgetOfExactType<ListSelectInherited<T>>();
  return inherited?.state.isSelectMode ?? false;
}