NativeBridge constructor

NativeBridge({
  1. String channelName = 'floating_palette',
  2. Duration commandTimeout = const Duration(seconds: 5),
})

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);
}