facade property

IFacade facade

Return the Multiton Facade instance

  • Throws MultitonErrorNotifierLacksKey if no multitonKey is set. Usually means facade getter is being accessed before initializeNotifier has been called (i.e., from the constructor). Defer facade access until the onRegister method.

Implementation

IFacade get facade {
  if (_multitonKey == null) throw new MultitonErrorNotifierLacksKey();
  return Facade.getInstance(_multitonKey);
}