getUserListStream method

Stream<List<ZegoUIKitUser>> getUserListStream()

get user list notifier

Implementation

Stream<List<ZegoUIKitUser>> getUserListStream() {
  return ZegoUIKitCore.shared.coreData.userListStreamCtrl?.stream.map(
          (users) => users
              .where((user) => !user.isAnotherRoomUser)
              .map((e) => e.toZegoUikitUser())
              .toList()) ??
      const Stream.empty();
}