instance property

PulseXInjector get instance

get instance of PulseXInjector If instance is null, it initializes instance by locking to ensure that a single async process runs without conflict

Implementation

static PulseXInjector get instance {
  if (_instance == null) {
    _lock.synchronized(() {
      _instance ??= PulseXInjector._();
    });
  }
  return _instance!;
}