outputSize method
The size in pixels retrieved by the output.
This should be called after setting AND awaiting
CameraController.setControllerPreset. Otherwise, this value could return
null
. A null
value indicates the output is using the default size.
Implementation
@override
Future<Size?> outputSize() async {
verifyAttached();
if (specifiedSize == null) return null;
return Size(
specifiedSize!.width.toDouble(),
specifiedSize!.height.toDouble(),
);
}