clearCalibration method

  1. @override
Future<bool> clearCalibration()
override

Implementation

@override
Future<bool> clearCalibration() async {
  try {
    if (_webGazerStarted && _hasWebGazerProperty()) {
      try {
        _callWebGazerMethod('clearData');
      } catch (e) {
        _evalJS('webgazer.clearData()');
      }
    }
    _calibrationPoints.clear();
    return true;
  } catch (e) {
    return false;
  }
}