import 'package:tpns_flutter_plugin/android/native_event_handler.dart'; class MyNativeEventHandler extends NativeEventHandler { final Function(String title, String message, String customContent, int type) notifyClick; MyNativeEventHandler(this.notifyClick); @override void onRegisterPushFail(String message, int code) { } @override void onRegisterPushSuccess(String token) { } @override void onNotifactionClickedResult(String title, String message, String customContent, int type) { super.onNotifactionClickedResult(title, message, customContent, type); this.notifyClick(title, message, customContent, type); } }