bind method

BoundLoopReference bind(
  1. Object value
)

Binds the loop reference to a specific value.

Returns a BoundLoopReference with the same parts and whose BoundLoopReference.value is given by value. The loop index is dropped in the process.

Implementation

BoundLoopReference bind(Object value) {
  return BoundLoopReference(value, parts);
}