stopSessionAndUploadData static method

Future<void> stopSessionAndUploadData()

This method is used for stopping the current session and uploading the data to server

Implementation

static Future<void> stopSessionAndUploadData() async {
  await _channel.invokeMethod('stopSessionAndUploadData');
  if (!kIsWeb && Platform.isIOS) {
    MotionReporter.instance.stop();
    RenderActivityReporter.instance.stop();
  }
}