FlutterPluginQpos constructor
FlutterPluginQpos()
Initializes the plugin and starts listening for potential platform events.
Implementation
factory FlutterPluginQpos() {
if (_instance == null) {
final MethodChannel methodChannel =
const MethodChannel('flutter_plugin_pos');
final EventChannel eventChannel = const EventChannel('flutter_plugin_pos_event');
// final EventChannel eventChannel = const EventChannel('plugins.flutter.io/charging');
_instance = FlutterPluginQpos.private(methodChannel, eventChannel);
}
return _instance!;
}