MethodChannelInappifySdk constructor

MethodChannelInappifySdk({
  1. MethodChannel? methodChannel,
  2. EventChannel? eventChannel,
  3. EventChannel? httpEventChannel,
  4. String requestIdGenerator()?,
})

Implementation

MethodChannelInappifySdk({
  MethodChannel? methodChannel,
  EventChannel? eventChannel,
  EventChannel? httpEventChannel,
  String Function()? requestIdGenerator,
}) : methodChannel =
         methodChannel ??
         const MethodChannel(InappifyChannelContract.channelName),
     eventChannel =
         eventChannel ??
         const EventChannel(InappifyChannelContract.eventChannelName),
     httpEventChannel =
         httpEventChannel ??
         const EventChannel(InappifyChannelContract.httpEventChannelName),
     _requestIdGenerator = requestIdGenerator;