remove method

void remove(
  1. String val
)

Implementation

void remove(String val) {
  state = state.where((e) => e != val).toList();
}