RCKForwardProvider class
- Inheritance
-
- Object
- ChangeNotifier
- RCKForwardProvider
Constructors
- RCKForwardProvider(RCKChatProvider? chatProvider, {bool useModifiedContent = false})
Properties
- canForwardOverConnection → bool
-
当前连接是否允许转发。与 forwardMessages 的门控同源,避免页面与发送
链路对「现在能不能发」给出不同答案。
no setter
-
chatProfileInfos
↔ List<
RCKChatProfileInfo> -
getter/setter pair
- connectionStatus → RCIMIWConnectionStatus?
-
当前连接状态。转发是否可能失败取决于它,页面据此选择反馈文案。
no setter
- context ↔ BuildContext?
-
getter/setter pair
- conversationLoadError → int?
-
no setter
-
conversationsToForward
↔ List<
RCIMIWConversation> -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- isLoadingConversations → bool
-
no setter
- lastFailure → RCKForwardFailure?
-
最近一次 forwardMessages 失败的原因;成功时为 null。
no setter
- lastResult → RCKForwardResult?
-
最近一次 forwardMessages 的结构化结果。
no setter
-
messagesToForward
↔ List<
RCIMIWMessage> -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchQuery ↔ String
-
getter/setter pair
- selectedConversation ↔ RCIMIWConversation?
-
getter/setter pair
- useModifiedContent → bool
-
final
- userInfoProvider ↔ CustomInfoProvider?
-
getter/setter pair
-
visibleConversations
→ List<
RCIMIWConversation> -
no setter
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
dispose(
) → void -
Discards any resources used by the object.
override
-
forwardMessages(
RCIMIWConversation forwardConversation, [BuildContext? context]) → Future< bool> - 返回是否全部转发成功,供转发页给出发送反馈。
-
getChatProfileInfos(
BuildContext context, CustomInfoProvider userInfoProvider) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
会话列表是异步分页拉取的,转发页/弹窗关闭后可能有迟到回调;
与 ChatProvider 同套路,销毁后静默忽略。
override
-
profileFor(
RCIMIWConversation conversation) → RCKChatProfileInfo? - 会话对应的展示资料(名称、头像、是否群组);尚未取到时返回 null。
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
retryLoadConversations(
) → void -
selectConversation(
RCIMIWConversation conversation) → void -
setCustomInfoProvider(
BuildContext context, CustomInfoProvider userInfoProvider) → void -
subtitleFor(
RCIMIWConversation conversation) → String - 移动端转发选择页的副标题。桌面端弹窗只展示会话名,不使用该文案。
-
titleFor(
RCIMIWConversation conversation) → String -
会话展示名。与
TitleWidget同约定:宿主取不到昵称时会返回空 name, 此时回退到裸 targetId,不能直接渲染空文本。 -
toString(
) → String -
A string representation of this object.
inherited
-
updateSearchQuery(
String value) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- forwardSendTimeout → const Duration
- 单条转发等待发送终态的最长时间。