ChatLifeCycle class
Constructors
- ChatLifeCycle({FutureBool shouldClearHistoricalMessageList(String conversationID) = DefaultLifeCycle.defaultAsyncBooleanSolution, FutureBool shouldDeleteMessage(String msgID) = DefaultLifeCycle.defaultAsyncBooleanSolution, MessageFunctionNullCallback messageDidSend = DefaultLifeCycle.defaultNullCallbackSolution, MessageListFunction didGetHistoricalMessageList = DefaultLifeCycle.defaultMessageListSolution, MessageFunction modifiedMessageWillMount = DefaultLifeCycle.defaultMessageSolution, MessageFunctionOptional newMessageWillMount = DefaultLifeCycle.defaultMessageSolution, bool messageShouldMount(V2TimMessage msg) = DefaultLifeCycle.defaultBooleanSolution, MessageListFunctionAsync messageListShouldMount = DefaultLifeCycle.defaultMessageListSolutionAsync})
Properties
- didGetHistoricalMessageList ↔ MessageListFunction
-
After getting the latest message list from API,
and before historical message list will be rendered.
You may add or delete some messages here.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- messageDidSend ↔ MessageFunctionNullCallback
-
Before a new message will be sent.
Returns null can block the message from sending.
After a new message been sent.
getter/setter pair
- messageListShouldMount ↔ MessageListFunctionAsync
-
Before all message will be rendered on the message list.
You may add or delete some messages here.
getter/setter pair
- messageShouldMount ↔ bool Function(V2TimMessage msg)
-
Before rendering a message to message list.
getter/setter pair
- modifiedMessageWillMount ↔ MessageFunction
-
Before a modified message updated to historical message list UI.
getter/setter pair
- newMessageWillMount ↔ MessageFunctionOptional
-
Before a new message will be added to historical message list from long connection.
You may not render this message by return null.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shouldClearHistoricalMessageList ↔ FutureBool Function(String conversationID)
-
Before clearing the historical message list,
true
means can clear continually, whilefalse
will not clear. You can make a second confirmation here by a modal, etc.getter/setter pair - shouldDeleteMessage ↔ FutureBool Function(String msgID)
-
Before deleting a message from historical message list,
true
means can delete continually, whilefalse
will not delete. You can make a second confirmation here by a modal, etc.getter/setter pair
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