MethodChannelCastKeepAlive constructor

MethodChannelCastKeepAlive({
  1. MethodChannel? channel,
})

Implementation

MethodChannelCastKeepAlive({MethodChannel? channel})
  : _channel = channel ?? const MethodChannel(channelName) {
  _channel.setMethodCallHandler(_fromPlatform);
}