onLongTapItem method
Handles item long press events.
model - The model that was long pressed.
context - The build context.
Shows action menus for the long pressed item.
Implementation
Future<void> onLongTapItem(BaseModel model, BuildContext context) async {
if (model is RequestModel) {
await _actionForRequest(model, context);
} else if (model is ErrorModel) {
await _actionForError(model, context);
}
}