abstract class NativeHandler { bool onEvent(Map evt); } class NativeUiHandler extends NativeHandler { NativeUiHandler._(); static NativeUiHandler instance = NativeUiHandler._(); @override bool onEvent(Map evt) { throw UnimplementedError(); } }