UserStatusHelper class

Class facade để sử dụng trong ứng dụng

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

getStatus(String userId) Future<String>
Lấy trạng thái dạng văn bản
setMyLastSeenAt() Future<void>
Cập nhật thời gian hoạt động cuối
setMyStatus({String? status, String? statusDesc}) Future<void>
Cập nhật trạng thái của tôi
streamStatus(String userId) Stream<String>
Stream trạng thái người dùng

Constants

statusAway → const String
statusBusy → const String
statusCustom → const String
statusOffline → const String
statusOnline → const String
Các hằng số trạng thái (để tương thích với mã cũ)