discontinuedPackage fluttersdk_dusk has been discontinued and replaced by tapir.

bind static method

void bind(
  1. String ref,
  2. RefBinding? binding
)

Stores how ref re-finds its control after a rebuild, replacing any earlier binding. A null binding clears it: a node that lost its label keeps its token but must not keep relocating by the label it used to carry.

Implementation

static void bind(String ref, RefBinding? binding) {
  if (binding == null) {
    _bindings.remove(ref);
    return;
  }
  _bindings[ref] = binding;
}