WebSocketCubit class
Methods
addError (Object error , [StackTrace ? stackTrace ])
→ void
Reports an error which triggers onError with an optional StackTrace .
inherited
addTyping ({required int groupId })
→ void
callConfig ({required int groupId })
→ void
callEnd ({required int meetingId })
→ void
close ()
→ Future <void >
Closes the instance.
This method should be called when the instance is no longer needed.
Once close is called, the instance can no longer be used.
inherited
connect ()
→ Future <void >
createDmGroup ({required String name , required String description , required List <int > users , required bool isPersonal })
→ void
deleteDirectMessage ({required int messageId })
→ void
disconnect ()
→ void
emit (WebSocketState state )
→ void
Updates the state to the provided state.
emit does nothing if the state being emitted
is equal to the current state.
inherited
instantScheduleMeeting ({required int groupId , required String topic , required int requestId })
→ void
messageFileUpload ({required int messageId , required String filename , required String name , required String description })
→ void
messagePin ({required int messageId })
→ void
messageUnPin ({required int messageId })
→ void
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onChange (Change<WebSocketState > change )
→ void
Called whenever a change occurs with the given change.
A change occurs when a new state is emitted.
onChange is called before the state of the cubit is updated.
onChange is a great spot to add logging/analytics for a specific cubit.
inherited
onError (Object error , StackTrace stackTrace )
→ void
Called whenever an error occurs and notifies BlocObserver.onError.
inherited
reconnect ()
→ Future <void >
removeFileUploadProgress (int messageId )
→ void
requestUser ()
→ void
sendDirectMessage ({required int fromUserId , required int groupId , required String encodedText , dynamic replyToMessageId })
→ void
sendMessage (Map <String , dynamic > message )
→ void
setToken (String token )
→ void
startConnectionMonitor ()
→ void
stopConnectionMonitor ()
→ void
toString ()
→ String
A string representation of this object.
inherited
updateFileUploadProgress (int messageId , FileUploadProgress progress )
→ void
updateMessageReaction ({required int messageId , required String reaction })
→ void
updateTextMessage ({required int messageIdToUpdate , required String encodedText })
→ void
updateUserStatus ({required int meetingId , required int userId , required String status , required bool isHost })
→ void