TUIConversationViewModel class
- Inheritance
-
- Object
- ChangeNotifier
- TUIConversationViewModel
Constructors
Properties
-
conversationList
↔ List<
V2TimConversation?> -
getter/setter pair
- globalChatModel → TUIChatGlobalModel
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- haveMoreData → bool
-
no setter
- lifeCycle ← ConversationLifeCycle?
-
no getter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollToConversation ↔ String?
-
getter/setter pair
- selectedConversation ↔ V2TimConversation?
-
getter/setter pair
- selfInfoViewModel → TUISelfInfoViewModel
-
final
- totalUnReadCount ↔ int
-
getter/setter pair
-
webDraftMap
↔ Map<
String, String> -
getter/setter pair
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
clearData(
) → dynamic -
clearHistoryMessage(
{required String convID, required int convType}) → Future< V2TimCallback?> -
clearScrollToConversation(
) → void -
clearWebDraft(
{required String conversationID}) → dynamic -
deleteConversation(
{required String conversationID}) → Future< V2TimCallback?> -
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
-
getWebDraft(
{required String conversationID}) → String? -
initConversation(
) → dynamic -
loadData(
{required int count}) → Future< void> -
loadInitConversation(
) → dynamic -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
pinConversation(
{required String conversationID, required bool isPinned}) → Future< V2TimCallback> -
refresh(
{int count = 100}) → dynamic -
removeConversationListener(
) → dynamic -
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
searchFriends(
String searchKey) → dynamic -
setConversationDraft(
{required String conversationID, String? draftText, bool isTopic = false, String? groupID, bool isAllowWeb = true}) → Future< V2TimCallback> -
setConversationListener(
) → dynamic -
setSelectedConversation(
V2TimConversation conversation) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
of(
) → V2TimConversation?