OnRequestCameraActionCallback typedef

OnRequestCameraActionCallback = Future<CameraAction?> Function(BuildContext context)

When the user click the camera button, should we take a photo or record a video using the camera

by default will show a dialog that ask the user which option he/she wants

Implementation

typedef OnRequestCameraActionCallback = Future<CameraAction?> Function(
  BuildContext context,
);