createInstance method
Instantiates a new object with arguments
.
Implementation
@override
$CaptureDevice createInstance(
TypeChannelMessenger messenger,
List<Object?> arguments,
) {
final String constructorName = arguments[0] as String;
switch (constructorName) {
case '':
return $create$(
messenger,
arguments[1] as String,
arguments[2] as int,
arguments[3] as bool,
arguments[4] as bool,
arguments[5] as bool,
arguments[6] as double,
);
}
throw ArgumentError.value(
constructorName,
'constructorName',
'Unable to invoke constructor of',
);
}