exists<T extends Object?> method
Valids if the instance of T
with or without id
given exists.
Implementation
bool exists<T extends Object?>([String? id]) {
final instanceToFind = ReactterInstance<T?>(id);
return _reactterInstanceManager.instances
.lookup(instanceToFind)
?.instance !=
null;
}