MethodChannelStylet constructor

MethodChannelStylet({
  1. MethodChannel methodChannel = const MethodChannel(_methodChannelName),
  2. EventChannel eventChannel = const EventChannel(_eventChannelName),
})

Creates a platform-channel backend with optionally injected test channels.

Implementation

MethodChannelStylet({
  this.methodChannel = const MethodChannel(_methodChannelName),
  this.eventChannel = const EventChannel(_eventChannelName),
});