stopVideoRecording method

void stopVideoRecording(
  1. BuildContext context,
  2. Color IconBackGroundColor,
  3. dynamic onDataVideoReceived(
    1. String
    )
)

Implementation

void stopVideoRecording(BuildContext context, Color IconBackGroundColor,
    Function(String) onDataVideoReceived) async {
  XFile videoPath = await _cameraController.stopVideoRecording();
  isRecording = false;
  Navigator.push(
    context,
    MaterialPageRoute(
      builder: (builder) => VideoViewPage(
        path: videoPath.path,
        IconBackGroundColor: IconBackGroundColor,
        onDataVideoReceived: onDataVideoReceived,
      ),
    ),
  );
  notifyListeners();
}