FlicButtonPlugin constructor
FlicButtonPlugin({
- required Flic2Listener flic2listener,
create the 'plugin' to manage all connection and listening to FLic 2 buttons
Implementation
FlicButtonPlugin({required this.flic2listener}) {
// set the callback handler to ours to receive all our data back after
// initialized
_channel.setMethodCallHandler(_methodCallHandler);
// an invoke the function to initialise the handling of Flic 2
_invokationFuture = _channel.invokeMethod<bool>(_methodNameInitialize);
}