Created
January 8, 2023 12:57
-
-
Save FlutterWiz/cb0717e1d560b4e29db709884798d5c3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
part of 'chat_management_cubit.dart'; | |
@freezed | |
class ChatManagementState with _$ChatManagementState { | |
const factory ChatManagementState({ | |
required bool isInProgress, | |
required bool isChannelNameValid, | |
required bool isChannelCreated, | |
required bool isCapturedPhotoSent, | |
required String channelName, | |
required int userIndex, | |
required Set<String> listOfSelectedUserIDs, | |
required Set<User> listOfSelectedUsers, | |
required List<Channel> currentUserChannels, | |
}) = _ChatManagementState; | |
factory ChatManagementState.empty() => const ChatManagementState( | |
isInProgress: false, | |
isChannelNameValid: false, | |
isChannelCreated: false, | |
isCapturedPhotoSent: false, | |
channelName: "", | |
userIndex: 0, | |
listOfSelectedUserIDs: {}, | |
listOfSelectedUsers: {}, | |
currentUserChannels: [], | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment