sendCreateNewInstancePair method

  1. @override
Future<void> sendCreateNewInstancePair(
  1. String channelName,
  2. PairedInstance remoteReference,
  3. List<Object?> arguments, {
  4. required bool owner,
})
override

Instantiate a new object instance for type channel of channelName.

Implementation

@override
Future<void> sendCreateNewInstancePair(
  String channelName,
  PairedInstance remoteReference,
  List<Object?> arguments, {
  required bool owner,
}) {
  return channel.invokeMethod<void>(
    MethodChannelMessenger._methodCreate,
    <Object>[channelName, remoteReference, arguments, owner],
  );
}