createInstance method
Instantiates a new object with arguments
.
Implementation
@override
$CameraSize 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,
);
}
throw ArgumentError.value(
constructorName,
'constructorName',
'Unable to invoke constructor of',
);
}