OnPhotoCallback typedef
        OnPhotoCallback =
     dynamic Function(CaptureRequest request)
    
    
Callback to get the CaptureRequest after the photo has been taken
Implementation
typedef OnPhotoCallback = Function(CaptureRequest request);