onDeleteClicked method

void onDeleteClicked()

Implementation

void onDeleteClicked(){
  if(widget.onDelete == null) return;
  widget.onDelete!();
}