getScore method Null safety

double getScore()

Get the score of the detected face (for samples made with supported single-shot Capturers).
return - One if this RawSample was made with an unsupported detector,otherwise - a number in the range (0 ... 1).

Implementation

double getScore() {
    var exception = _getException();
    final get = _dll_handle.lookupFunction<_RSgetScore_c, _RSgetScore_dart>(
        _c_namespace + 'RawSample_getScore');

    final double res = get(this._impl, exception);
    checkException(exception, _dll_handle);

    return res;
  }