$create$ method

Future<PairedInstance?> $create$(
  1. $CaptureInputPort $instance, {
  2. required bool $owner,
  3. required String mediaType,
  4. required String? sourceDeviceType,
  5. required int sourceDevicePosition,
})

Implementation

Future<PairedInstance?> $create$(
  $CaptureInputPort $instance, {
  required bool $owner,
  required String mediaType,
  required String? sourceDeviceType,
  required int sourceDevicePosition,
}) {
  return createNewInstancePair(
    $instance,
    <Object?>[
      '',
      mediaType,
      sourceDeviceType,
      sourceDevicePosition,
    ],
    owner: $owner,
  );
}