removeByKey method

bool removeByKey(
  1. String? id
)
inherited

Remove a specific 'StateXController' by its unique 'key' identifier.

Implementation

bool removeByKey(String? id) {
  bool removed = id != null;
  if (removed) {
    final con = controllerById(id);
    removed = con != null;
    if (removed) {
      removed = remove(con);
    }
  }
  return removed;
}