unregister static method

bool unregister(
  1. String id
)

Removes the entry with id; the built-in channel entries cannot be removed.

Implementation

static bool unregister(String id) {
  if (SurfaceDebugChannel.byId(id) != null) return false;
  final before = _entries.length;
  _entries.removeWhere((entry) => entry.id == id);
  return _entries.length != before;
}