initialize method

void initialize()
override

Any initiliazation needed to be done by the messenger service.

This is called once when fmvvm is initialized. fmvvm uses a single instance of the navigaiton service throughout the app.

Implementation

void initialize() {
  var messageService = Core.componentResolver.resolveType<MessageService>();

  _subscription = Subscription(Constants.newBuildContext, (c) {
    _viewContext = c;
  });

  messageService.subscribe(_subscription);
}