open static method
Opens the camera and completes with the photo, or with null if the user went back without taking one.
Implementation
static Future<XFile?> open(BuildContext context) {
return Navigator.of(context).push<XFile>(
MaterialPageRoute(builder: (_) => const CameraCapturePage()),
);
}