launchMiniProgram method

  1. @override
Future<void> launchMiniProgram({
  1. required String userName,
  2. String? path,
  3. int type = WechatMiniProgram.RELEASE,
})
override

打开小程序

Implementation

@override
Future<void> launchMiniProgram({
  required String userName,
  String? path,
  int type = WechatMiniProgram.RELEASE,
}) {
  return methodChannel.invokeMethod<void>(
    'launchMiniProgram',
    <String, dynamic>{
      'username': userName,
      if (path != null) 'path': path,
      'type': type,
    },
  );
}