LocalChatService constructor

LocalChatService({
  1. ChatDetailService? localChatDetailService,
  2. ChatOverviewService? localChatOverviewService,
  3. ChatUserService? localChatUserService,
})

Constructor for LocalChatService.

localChatDetailService: Optional local ChatDetailService instance, defaults to LocalChatDetailService. localChatOverviewService: Optional local ChatOverviewService instance, defaults to LocalChatOverviewService. localChatUserService: Optional local ChatUserService instance, defaults to LocalChatUserService.

Implementation

LocalChatService({
  this.localChatDetailService,
  this.localChatOverviewService,
  this.localChatUserService,
}) {
  localChatOverviewService ??= LocalChatOverviewService();
  localChatDetailService ??= LocalChatDetailService(
    chatOverviewService: localChatOverviewService!,
  );

  localChatUserService ??= LocalChatUserService();
}