callSRG method

  1. @protected
SearchRow callSRG(
  1. SearchRowGetter getter,
  2. Object value
)

Calls the given SearchRowGetter with the SQLite API disabled.

Implementation

@protected
SearchRow callSRG(SearchRowGetter getter, Object value) {
  _ApiStatus status = _apiStatus;
  try {
    _apiStatus = _ApiStatus.none;
    return getter(value);
  } finally {
    if (_apiStatus == _ApiStatus.none) ////
      _apiStatus = status;
  }
}