start method
Starts the camera and returns the native textureId for rendering.
Use the returned ID with a Texture widget for high-performance preview. Returns null if the camera failed to start.
Implementation
Future<int?> start({
CameraQuality quality = CameraQuality.hd,
int? width,
int? height,
}) async {
final result = await NexoraSdkPlatform.instance.startCamera(
width: width ?? quality.width,
height: height ?? quality.height,
);
if (result is int) return result;
return null;
}