WeChatShareMiniProgramModel constructor

WeChatShareMiniProgramModel({
  1. required String webPageUrl,
  2. WXMiniProgramType miniProgramType = WXMiniProgramType.release,
  3. required String userName,
  4. String path = "/",
  5. String? title,
  6. String? description,
  7. bool withShareTicket = false,
  8. required WeChatImage thumbnail,
  9. WeChatImage? hdImagePath,
  10. String? mediaTagName,
  11. String? messageAction,
  12. String? messageExt,
  13. bool compressThumbnail = true,
  14. String? msgSignature,
})

Implementation

WeChatShareMiniProgramModel(
    {required this.webPageUrl,
    this.miniProgramType = WXMiniProgramType.release,
    required this.userName,
    this.path = "/",
    this.title,
    this.description,
    this.withShareTicket = false,
    required this.thumbnail,
    this.hdImagePath,
    this.mediaTagName,
    this.messageAction,
    this.messageExt,
    this.compressThumbnail = true,
    this.msgSignature})
    : assert(webPageUrl.isNotEmpty),
      assert(userName.isNotEmpty),
      assert(path.isNotEmpty);