ShareWidget class

Inheritance

Constructors

ShareWidget.new({Key? key, Color backgroundColor = const Color(0xf5f7f7f7), OnShareCancelCall? cancelCall, required OnShareCall shareCall, bool isClickCheck = false, required List<String> platforms, ShareInfoCollect? shareInfoCall, OnShareDismissCall? dismissCall, ShareProperties? properties, required OnSocialConfig socialConfig})
const

Properties

backgroundColor Color
分享组件背景颜色
final
cancelCall OnShareCancelCall?
分享取消
final
dismissCall OnShareDismissCall?
分享销毁回调
final
hashCode int
The hash code for this object.
no setterinherited
isClickCheck bool
true-点击组件时进行检测是否有效,false-在构建时通过包含在platforms来判断; 默认false
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
platforms List<String>
包含在集合内显示,否则隐藏
final
properties ShareProperties?
组件属性
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shareCall OnShareCall
分享条目事件
final
shareInfoCall ShareInfoCollect?
分享信息回调
final
socialConfig OnSocialConfig
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _ShareWidgetState
Creates the mutable state for this widget at a given location in the tree.
override
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, 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