createInstance method

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

Instantiates a new object with arguments.

Implementation

@override
$CaptureMovieFileOutput createInstance(
  TypeChannelMessenger messenger,
  List<Object?> arguments,
) {
  final String constructorName = arguments[0] as String;
  switch (constructorName) {
    case '':
      return $create$(
        messenger,
      );
  }

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