onLongCallback method

  1. @override
void onLongCallback(
  1. E? item,
  2. int position
)
override

长按事件回调触发

Implementation

@override
void onLongCallback(E? item, int position) {
  if (onItemLongClickable(item, position)) {
    for (var listener in onItemLongClickListeners) {
      listener(item, position);
    }
  }
}