123456789101112131415 |
- 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<String> onIDCardRead = FEventHandler<String>();
- OpenIDCardPageHandler() : super(TargetMethodName.OnIDCardRead);
- @override
- Future<void> execute(List<String> args) async {
- args.forEach((element) {
- print(element);
- });
- onIDCardRead.emit(this, args[0]);
- }
- }
|