remove method Null safety

void remove(
  1. int id
)

Implementation

void remove(int id) {
  _ids.remove(id);
  _text = null;
}