NativeBridge constructor
NativeBridge({})
Create a new NativeBridge.
In most cases, you should use PaletteHost.bridge instead of creating your own instance.
Implementation
NativeBridge({
String channelName = 'floating_palette',
this.commandTimeout = const Duration(seconds: 5),
}) : _channel = MethodChannel(channelName) {
_channel.setMethodCallHandler(_handleMethodCall);
}