$create$ method
$CaptureDevice
$create$(
- TypeChannelMessenger messenger,
- String uniqueId,
- int position,
- bool isSmoothAutoFocusSupported,
- bool hasFlash,
- bool hasTorch,
- double maxAvailableTorchLevel,
override
Implementation
@override
$CaptureDevice $create$(
TypeChannelMessenger messenger,
String uniqueId,
int position,
bool isSmoothAutoFocusSupported,
bool hasFlash,
bool hasTorch,
double maxAvailableTorchLevel,
) {
// ignore: invalid_use_of_visible_for_testing_member
return CaptureDevice(
uniqueId: uniqueId,
position: position,
isSmoothAutoFocusSupported: isSmoothAutoFocusSupported,
hasFlash: hasFlash,
hasTorch: hasTorch,
maxAvailableTorchLevel: maxAvailableTorchLevel,
);
}