Returns true if the widget with id is registered.
id
bool isRegistered(String id) => _widgets.containsKey(id);