putFilterVariable method

void putFilterVariable(
  1. String name,
  2. String value
)

Adds or replaces a Sync filter variable value for the given name.

Eventually, existing values for the same name are replaced.

Sync client filter variables can be used in server-side Sync filters to filter out objects that do not match the filters. Filter variables must be added before login, so before calling start().

See also removeFilterVariable and removeAllFilterVariables.

Implementation

void putFilterVariable(String name, String value) {
  withNativeString(
      name,
      (nameCStr) => withNativeString(
          value,
          (valueCStr) => checkObx(
              C.sync_filter_variables_put(_ptr, nameCStr, valueCStr))));
}