methodChannel property
The method channel used to interact with the native platform.
Implementation
@visibleForTesting
MethodChannel get methodChannel {
if (_methodChannel != null) {
return _methodChannel!;
}
WidgetsFlutterBinding.ensureInitialized();
const rvalue = MethodChannel('cobrowse_sdk_flutter');
rvalue.setMethodCallHandler((call) =>
implementations[call.method]?.call(call) ??
Future.error('No implementation of ${call.method} method'));
return _methodChannel = rvalue;
}