mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-07-23 14:40:58 -04:00
State machine work
This commit is contained in:
parent
61855521dc
commit
be8014c97a
34 changed files with 703 additions and 505 deletions
|
@ -67,9 +67,9 @@ abstract mixin class $ChatComponentStateCopyWith<$Res> {
|
|||
@useResult
|
||||
$Res call(
|
||||
{User? localUser,
|
||||
IMap<String, User> remoteUsers,
|
||||
IMap<String, User> historicalRemoteUsers,
|
||||
IMap<String, User> unknownUsers,
|
||||
IMap<UserID, User> remoteUsers,
|
||||
IMap<UserID, User> historicalRemoteUsers,
|
||||
IMap<UserID, User> unknownUsers,
|
||||
AsyncValue<WindowState<Message>> messageWindow,
|
||||
String title});
|
||||
|
||||
|
@ -103,17 +103,17 @@ class _$ChatComponentStateCopyWithImpl<$Res>
|
|||
: localUser // ignore: cast_nullable_to_non_nullable
|
||||
as User?,
|
||||
remoteUsers: null == remoteUsers
|
||||
? _self.remoteUsers!
|
||||
? _self.remoteUsers
|
||||
: remoteUsers // ignore: cast_nullable_to_non_nullable
|
||||
as IMap<String, User>,
|
||||
as IMap<UserID, User>,
|
||||
historicalRemoteUsers: null == historicalRemoteUsers
|
||||
? _self.historicalRemoteUsers!
|
||||
? _self.historicalRemoteUsers
|
||||
: historicalRemoteUsers // ignore: cast_nullable_to_non_nullable
|
||||
as IMap<String, User>,
|
||||
as IMap<UserID, User>,
|
||||
unknownUsers: null == unknownUsers
|
||||
? _self.unknownUsers!
|
||||
? _self.unknownUsers
|
||||
: unknownUsers // ignore: cast_nullable_to_non_nullable
|
||||
as IMap<String, User>,
|
||||
as IMap<UserID, User>,
|
||||
messageWindow: null == messageWindow
|
||||
? _self.messageWindow
|
||||
: messageWindow // ignore: cast_nullable_to_non_nullable
|
||||
|
@ -167,13 +167,13 @@ class _ChatComponentState implements ChatComponentState {
|
|||
final User? localUser;
|
||||
// Active remote users
|
||||
@override
|
||||
final IMap<String, User> remoteUsers;
|
||||
final IMap<UserID, User> remoteUsers;
|
||||
// Historical remote users
|
||||
@override
|
||||
final IMap<String, User> historicalRemoteUsers;
|
||||
final IMap<UserID, User> historicalRemoteUsers;
|
||||
// Unknown users
|
||||
@override
|
||||
final IMap<String, User> unknownUsers;
|
||||
final IMap<UserID, User> unknownUsers;
|
||||
// Messages state
|
||||
@override
|
||||
final AsyncValue<WindowState<Message>> messageWindow;
|
||||
|
@ -227,9 +227,9 @@ abstract mixin class _$ChatComponentStateCopyWith<$Res>
|
|||
@useResult
|
||||
$Res call(
|
||||
{User? localUser,
|
||||
IMap<String, User> remoteUsers,
|
||||
IMap<String, User> historicalRemoteUsers,
|
||||
IMap<String, User> unknownUsers,
|
||||
IMap<UserID, User> remoteUsers,
|
||||
IMap<UserID, User> historicalRemoteUsers,
|
||||
IMap<UserID, User> unknownUsers,
|
||||
AsyncValue<WindowState<Message>> messageWindow,
|
||||
String title});
|
||||
|
||||
|
@ -267,15 +267,15 @@ class __$ChatComponentStateCopyWithImpl<$Res>
|
|||
remoteUsers: null == remoteUsers
|
||||
? _self.remoteUsers
|
||||
: remoteUsers // ignore: cast_nullable_to_non_nullable
|
||||
as IMap<String, User>,
|
||||
as IMap<UserID, User>,
|
||||
historicalRemoteUsers: null == historicalRemoteUsers
|
||||
? _self.historicalRemoteUsers
|
||||
: historicalRemoteUsers // ignore: cast_nullable_to_non_nullable
|
||||
as IMap<String, User>,
|
||||
as IMap<UserID, User>,
|
||||
unknownUsers: null == unknownUsers
|
||||
? _self.unknownUsers
|
||||
: unknownUsers // ignore: cast_nullable_to_non_nullable
|
||||
as IMap<String, User>,
|
||||
as IMap<UserID, User>,
|
||||
messageWindow: null == messageWindow
|
||||
? _self.messageWindow
|
||||
: messageWindow // ignore: cast_nullable_to_non_nullable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue