onTapItem method

void onTapItem(
  1. BaseModel model
)

Handles item tap events.

model - The model that was tapped.

Navigates to the detail screen for the tapped item.

Implementation

void onTapItem(BaseModel model) {
  selected = model;
  if (model is RequestModel) {
    AppNavigator.apiDetail(requestModel: model);
  }
}