onStateRemove method Null safety

dynamic onStateRemove()

Implementation

onStateRemove() {
  updateFilesList();
}