currentCameraSize property

Size? get currentCameraSize

Returns the current camera size from the platform channel, or null if the camera hasn't been initialized.

Implementation

static Size? get currentCameraSize {
  final instance = CameraMacOSPlatform.instance;
  if (instance is MethodChannelCameraMacOS) {
    return instance.lastCameraSize;
  }
  return null;
}