currentTextureId property

int? get currentTextureId

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

Implementation

static int? get currentTextureId {
  final instance = CameraMacOSPlatform.instance;
  if (instance is MethodChannelCameraMacOS) {
    return instance.lastTextureId;
  }
  return null;
}