createInstance method

  1. @override
$CamcorderProfile createInstance(
  1. TypeChannelMessenger messenger,
  2. List<Object?> arguments
)
inherited

Instantiates a new object with arguments.

Implementation

@override
$CamcorderProfile createInstance(
  TypeChannelMessenger messenger,
  List<Object?> arguments,
) {
  final String constructorName = arguments[0] as String;
  switch (constructorName) {
    case '':
      return $create$(
        messenger,
        arguments[1] as int,
        arguments[2] as int,
        arguments[3] as int,
        arguments[4] as int,
        arguments[5] as int,
        arguments[6] as int,
        arguments[7] as int,
        arguments[8] as int,
        arguments[9] as int,
        arguments[10] as int,
        arguments[11] as int,
        arguments[12] as int,
      );
  }

  throw ArgumentError.value(
    constructorName,
    'constructorName',
    'Unable to invoke constructor of',
  );
}