VBaseMessageController class abstract
- Inheritance
-
- Object
- ChangeNotifier
- ValueNotifier<
List< VBaseMessage> > - VBaseMessageController
- Mixed in types
Constructors
- VBaseMessageController({required VRoom vRoom, required MessageProvider messageProvider, required BuildContext context, required AutoScrollController scrollController, required InputStateController inputStateController, required VMessageConfig vMessageConfig, required VMessageItemController itemController})
Properties
- clipboardSubscription ↔ StreamSubscription?
-
getter/setter pair
- context → BuildContext
-
finalinherited
- events → EventBus
-
final
- focusNode → FocusNode
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- inputStateController → InputStateController
-
final
- isMessagesEmpty → bool
-
no setterinherited
- itemController → VMessageItemController
-
final
- lastMessageId → String
-
no setterinherited
- messageProvider → MessageProvider
-
finalinherited
-
messageStateStream
→ StreamController<
VBaseMessage> -
finalinherited
- pasteboard → IPasteboard
-
final
- requireLoadMoreMessages → bool
-
no setterinherited
- roomId → String
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollController → AutoScrollController
-
finalinherited
-
stateMessages
→ List<
VBaseMessage> -
no setterinherited
-
streamsMix
→ List<
StreamSubscription> -
finalinherited
- uuid → Uuid
-
final
-
value
↔ List<
VBaseMessage> -
The current value stored in this notifier.
getter/setter pairinherited
- vConfig → VChatConfig
-
final
- vMessageConfig → VMessageConfig
-
final
- voiceControllers ↔ VVoicePlayerController
-
latefinal
- vRoom → VRoom
-
finalinherited
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
close(
) → void -
closeSocketStatusStream(
) → void -
inherited
-
closeStreamMix(
) → void -
inherited
-
deleteMessage(
String localId) → void -
inherited
-
deliverAll(
VSocketOnDeliverMessagesModel model) → void -
inherited
-
dismissReply(
) → 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
-
emitSeenFor(
String roomId) → void -
inherited
-
getMessagesFromLocal(
) → Future< void> -
inherited
-
getMessagesFromRemote(
VRoomMessagesDto dto) → Future< void> -
inherited
-
initSocketStatusStream(
Stream< VSocketStatusEvent> stream) → void -
inherited
-
insertAllMessages(
List< VBaseMessage> messages) → void -
inherited
-
insertMessage(
VBaseMessage messageModel) → void -
inherited
-
loadMoreMessages(
) → Future< List< VBaseMessage> ?> -
inherited
-
loadUntil(
VBaseMessage message) → Future< void> -
inherited
-
messageSearch(
String text) → void -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
onCloseSearch(
) → void -
onGetClipboardImageBytes(
Uint8List imageBytes) → void -
onHighlightMessage(
VBaseMessage message) → Future< void> -
onMentionRequireSearch(
BuildContext context, String query) → Future< List< MentionModel> > - set to each controller
-
onMessageLongTap(
BuildContext context, VBaseMessage message) → void -
onMessageTap(
VBaseMessage message) → void -
onOpenSearch(
) → void -
onPaste(
List< VPlatformFile> files) → Future<void> -
onReSend(
VBaseMessage message) → void -
onSearch(
String value) → void -
onSocketConnected(
) → void -
inherited
-
onSocketDisconnect(
) → void -
inherited
-
onSubmitFiles(
List< VPlatformFile> files) → void -
onSubmitLocation(
VLocationMessageData data) → void -
onSubmitMedia(
BuildContext context, List< VPlatformFile> files) → void -
onSubmitText(
String message) → void -
onSubmitVoice(
VMessageVoiceData data) → void -
onTitlePress(
BuildContext context) → void -
onTypingChange(
VRoomTypingEnum typing) → void -
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
resetMessages(
) → void -
inherited
-
scrollDown(
) → void -
seenAll(
VSocketOnRoomSeenModel model) → void -
inherited
-
setReply(
VBaseMessage p1) → void -
sort(
List< VBaseMessage> messages) → List<VBaseMessage> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateApiMessages(
List< VBaseMessage> apiMessages) → void -
inherited
-
updateMessage(
VBaseMessage messageModel) → void -
inherited
-
updateMessageAllDeletedAt(
String localId, String? allDeletedAt) → void -
inherited
-
updateMessageStatus(
String localId, VMessageEmitStatus emitState) → void -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited