TIMUIKitChatProviderScope class

Inheritance

Constructors

TIMUIKitChatProviderScope({Key? key, Widget? child, List<SingleChildWidget>? providers, List<V2TimGroupMemberFullInfo?>? groupMemberList, TIMUIKitInputTextFieldController? textFieldController, required Widget builder(BuildContext, TUIChatSeparateViewModel, Widget?), TUIChatSeparateViewModel? model, String? groupID, bool? isBuild, required String conversationID, required ConvType conversationType, TIMUIKitChatController? controller, TIMUIKitChatConfig? config, ChatLifeCycle? lifeCycle, AutoScrollController? scrollController})

Properties

builder Widget Function(BuildContext, TUIChatSeparateViewModel, Widget?)
You could get the model from here, and transfer it to other widget from TUIKit.
final
child Widget?
final
config TIMUIKitChatConfig?
The global config for TIMUIKitChat.
final
controller TIMUIKitChatController?
TIMUIKitChatController needs to be provided if you use it outside.
final
conversationID String
Conversation id, use for get history message list.
final
conversationType ConvType
Conversation type
final
globalModel TUIChatGlobalModel
final
groupID String?
final
groupListenerModel TUIGroupListenerModel
final
groupMemberList List<V2TimGroupMemberFullInfo?>?
An optional parameter groupMemberList can be provided. groupMemberList accepts a list of nullable V2TimGroupMemberFullInfo objects. The purpose of this parameter is to allow the client to supply a pre-fetched list of group member information. If this list is provided, it will not make additional network requests to fetch the group member information internally.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isBuild bool?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lifeCycle ChatLifeCycle?
The life cycle for chat business logic.
final
model TUIChatSeparateViewModel?
getter/setter pair
providers List<SingleChildWidget>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollController → AutoScrollController?
final
textFieldController TIMUIKitInputTextFieldController?
The controller for text field.
final
themeViewModel TUIThemeViewModel
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
loadData() → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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