ChatSingleLayout class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- ChatSingleLayout
Constructors
-
ChatSingleLayout({Key? key, required Widget child, required String msgId, required int index, required bool isSingleChat, required Sink<
int> clickSink, required Stream<MsgStreamEv< ? sendStatusStream, required CustomPopupMenuController popupCtrl, required bool isReceivedMsg, String? rightAvatar, String? leftAvatar, required String? leftName, double avatarSize = 42.0, bool? isUnread, Color leftBubbleColor = const Color(0xFFF0F0F0), Color rightBubbleColor = const Color(0xFFDCEBFE), dynamic onLongPressRightAvatar()?, dynamic onTapRightAvatar()?, dynamic onLongPressLeftAvatar()?, dynamic onTapLeftAvatar()?, bool isSendFailed = false, bool isSending = true, Widget? timeView, Widget? quoteView, bool isBubbleBg = true, bool isHintMsg = false, bool checked = false, bool showRadio = false, dynamic onRadioChanged(bool checked)?, bool delaySendingStatus = false, bool enabledReadStatus = true, int readingDuration = 0, bool isPrivateChat = false, dynamic onStartDestroy()?, int haveReadCount = 0, int needReadCount = 0, dynamic viewMessageReadStatus()?, dynamic failedResend()?, CustomAvatarBuilder? customLeftAvatarBuilder, CustomAvatarBuilder? customRightAvatarBuilder, bool haveUsableMenu = true, bool showLongPressMenu = true, bool isVoiceMessage = false})bool> > -
const
Properties
- avatarSize → double
-
final
- checked → bool
-
final
- child → Widget
-
final
-
clickSink
→ Sink<
int> -
final
- customLeftAvatarBuilder → CustomAvatarBuilder?
-
final
- customRightAvatarBuilder → CustomAvatarBuilder?
-
final
- delaySendingStatus → bool
-
final
- enabledReadStatus → bool
-
final
- failedResend → (dynamic Function()?)
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- haveReadCount → int
-
final
- haveUsableMenu → bool
-
final
- index → int
-
final
- isBubbleBg → bool
-
final
- isHintMsg → bool
-
final
- isPrivateChat → bool
-
final
- isReceivedMsg → bool
-
final
- isSendFailed → bool
-
final
- isSending → bool
-
final
- isSingleChat → bool
-
final
- isUnread → bool?
-
final
- isVoiceMessage → bool
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- leftAvatar → String?
-
final
- leftBubbleColor → Color
-
final
- leftName → String?
-
final
-
final
- msgId → String
-
final
- needReadCount → int
-
final
- onLongPressLeftAvatar → (dynamic Function()?)
-
final
- onLongPressRightAvatar → (dynamic Function()?)
-
final
- onRadioChanged → (dynamic Function(bool checked)?)
-
final
- onStartDestroy → (dynamic Function()?)
-
final
- onTapLeftAvatar → (dynamic Function()?)
-
final
- onTapRightAvatar → (dynamic Function()?)
-
final
- popupCtrl → CustomPopupMenuController
-
final
- quoteView → Widget?
-
final
- readingDuration → int
-
final
- rightAvatar → String?
-
final
- rightBubbleColor → Color
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sendStatusStream
→ Stream<
MsgStreamEv< ?bool> > -
final
- showLongPressMenu → bool
-
final
- showRadio → bool
-
final
- timeView → Widget?
-
final
- viewMessageReadStatus → (dynamic Function()?)
-
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
-
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}) → 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
Static Properties
- haveReadStyle ↔ TextStyle
-
getter/setter pair
- unreadStyle ↔ TextStyle
-
getter/setter pair