import 'package:vitalapp/js_platform/handlers/base.dart'; import 'package:vitalapp/js_platform/methods.dart'; import 'package:vnote_device_plugin/events/event_type.dart'; class OpenIDCardPageHandler extends MethodHandlerBase { static FEventHandler onIDCardRead = FEventHandler(); OpenIDCardPageHandler() : super(TargetMethodName.OnIDCardRead); @override Future execute(List args) async { args.forEach((element) { print(element); }); onIDCardRead.emit(this, args[0]); } }