setAppShareInfo static method

void setAppShareInfo({
  1. required BuildContext context,
  2. required String title,
  3. String? imageUrl,
  4. required Map query,
})

Implementation

static void setAppShareInfo({
  required BuildContext context,
  required String title,
  String? imageUrl,
  required Map query,
}) {
  final route = ModalRoute.of(context);
  if (route != null) {
    _routeShareInfos[route.hashCode] = MPFlutterWechatAppShareInfo(
      title: title,
      imageUrl: imageUrl,
      query: query,
    );
  }
}