exists<T extends Object?> method

bool exists<T extends Object?>([
  1. String? id
])
inherited

Valids if the instance of T type with id optional exists.

Implementation

bool exists<T extends Object?>([String? id]) {
  return _getInstanceRegister<T>(id)?.instance != null;
}