InAppChatCore class

Inheritance

Constructors

InAppChatCore({String? authorization})

Properties

appId AppId
latefinal
authorization String?
getter/setter pair
deviceId Future<String?>
latefinal
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
isLogin bool
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
constructFCMPayload({required User peer, required String message, required String token}) String
createClient() Future<void>
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
inherited
getApnsTokens(User user) Future<List<String>>
getUser(String userUid) Future<User?>
Returns a stream of all users from Firebase
getUserByUserID(String userId) Future<User?>
Returns a stream of all users from Firebase
getUserByUsername(String username) Future<User?>
Returns a stream of all users from Firebase
log(Object o) → dynamic
login(String username, {required String firstName, required String lastName}) Future<void>
logout() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
openChat(BuildContext context) Future
openChatRoom(BuildContext context, Room room) Future
openChatRoomByUser(BuildContext context, User peer) Future
openChatRoomByUserID(BuildContext context, String userId) Future
openChatRoomByUsername(BuildContext context, String username) Future
openChatUser(BuildContext context) Future
openTestChat(BuildContext context) Future
register(String username, {required String firstName, required String lastName}) Future<void>
registerAppId(AppId appId) → dynamic
registerAuthorization(String token) → dynamic
registerDevice() → dynamic
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
sendPushMessage({required User peer, required String message}) Future<void>
sendPushMessageToFCMToken({required User peer, required String message, required String token}) → dynamic
toString() String
A string representation of this object.
inherited
updateDeviceToken() → dynamic

Operators

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