SocketioController class

Inheritance
  • Object
  • GetLifeCycle
  • DisposableInterface
  • GetxController
  • SocketioController
Implemented types

Constructors

SocketioController.new()

Properties

connectionState ↔ Rx<RTCPeerConnectionState?>
getter/setter pair
currentUserAccounts ↔ Rx<UserAccounts>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
no setterinherited
initialized bool
Checks whether the controller has already been initialized.
no setterinherited
isCallingMe ↔ RxBool
getter/setter pair
isClosed bool
Checks whether the controller has already been closed.
no setterinherited
lastPingTime DateTime?
getter/setter pair
listeners int
no setterinherited
localRenderer ↔ Rx<RTCVideoRenderer>
getter/setter pair
localStream ↔ MediaStream?
getter/setter pair
onCallingAccept ↔ void Function(int chatID, String name, String avatar)?
getter/setter pair
onChatUpdated ↔ void Function(Chat updatedChat)?
getter/setter pair
onDelete → InternalFinalCallback<void>
Internal callback that starts the cycle of this controller.
finalinherited
onStart → InternalFinalCallback<void>
Called at the exact moment the widget is allocated in memory. It uses an internal "callable" type, to avoid any @overrides in subclases. This method should be internal and is required to define the lifetime cycle of the subclass.
finalinherited
peerConnection ↔ RTCPeerConnection?
getter/setter pair
pingID ↔ RxString
getter/setter pair
pingTimer Timer?
getter/setter pair
pingValue ↔ RxInt
getter/setter pair
remoteRenderer ↔ Rx<RTCVideoRenderer>
getter/setter pair
remoteStream ↔ MediaStream?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
socket ↔ Socket
getter/setter pair
socketChatStatus ↔ RxBool
getter/setter pair
socketPREFIX String
getter/setter pair
userListTimer Timer?
getter/setter pair
whichuserisCallingMe ↔ RxString
getter/setter pair

Methods

$configureLifeCycle() → void
inherited
acceptcall(String username) → void
addListener(GetStateUpdate listener) → Disposer
Register a closure to be called when the object notifies its listeners.
inherited
addListenerId(Object? key, GetStateUpdate listener) → Disposer
inherited
callUser(User user) Future<void>
closecall(String username) → void
createAnswer(RTCSessionDescription offer) Future<void>
createOffer({required int id, required APIChat type, required String image, required String name, required int wanteduser}) Future<void>
dispose() → void
inherited
disposeId(Object id) → void
To dispose an id from future updates(), this ids are registered by GetBuilder() or similar, so is a way to unlink the state change with the Widget from the Controller.
inherited
fetchUserList({int? groupID}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyChildrens() → void
inherited
onClose() → void
Called before onDelete method. onClose might be used to dispose resources used by the controller. Like closing events, or streams before the controller is destroyed. Or dispose objects that can potentially create some memory leaks, like TextEditingControllers, AnimationControllers. Might be useful as well to persist some data on disk.
override
onInit() → void
Called immediately after the widget is allocated in memory. You might use this to initialize something for the controller.
override
onReady() → void
Called 1 frame after onInit(). It is the perfect place to enter navigation events, like snackbar, dialogs, or a new route, or async request.
inherited
refresh() → void
inherited
refreshGroup(Object id) → void
inherited
registerUser(User user) → void
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that the object notifies.
inherited
removeListenerId(Object id, VoidCallback listener) → void
inherited
sendAnswer(dynamic answer) → void
sendCandidate(dynamic candidate) → void
sendMessage(ChatMessage data, dynamic userID) → void
sendOffer(dynamic offer, {required int id, required APIChat type, required String image, required String name, required int wanteduser}) → void
socketInit() → dynamic
startPing(Duration interval) → void
stopPing() → void
toString() String
A string representation of this object.
inherited
triggerCallingAccept(int chatID, String name, String avatar) → void
triggerChatUpdated(Chat chat) → void
update([List<Object>? ids, bool condition = true]) → void
Rebuilds GetBuilder each time you call update(); Can take a List of ids, that will only update the matching GetBuilder( id: ), ids can be reused among GetBuilders like group tags. The update will only notify the Widgets, if condition is true.
inherited
updateuseraccount() → void
userUpdate(User user) → void
webRTCinit({bool restoresystem = false}) Future<void>

Operators

operator ==(Object other) bool
The equality operator.
inherited