WeChatFile.asset constructor

WeChatFile.asset(
  1. String source, {
  2. String? suffix,
})

source path of the image, like '/asset/image.pdf?package=flutter', the query param package in source only available when you want to specify the package of image

Implementation

WeChatFile.asset(
  String this.source, {
  String? suffix,
})  : assert(source.trim().isNotEmpty),
      schema = FileSchema.asset,
      suffix = source.readSuffix(suffix, defaultSuffixTxt);