ShareDialog class
ShareDialog.instance.show(context,
platforms: SharePlatform.weixin, SharePlatform.qq
,
shareInfoCall: ShareInfoHandle(title: "分享测试",
shareType: ShareType.links, url: "https://www.baidu.com"));
Constructors
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dismiss(
) → void - 销毁分享弹窗
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
show(
{required BuildContext context, required List< SharePlatform> platforms, required OnSocialConfig socialConfig, ShareProperties? properties}) → void -
显示分享弹窗
context
构建上下文platforms
允许展示的分享平台shareInfoCall
分享信息回调title
组件标题 -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → ShareDialog
-
no setter