INNER CODE UNIT · Dart

targetIndex

hackware1993/Flutter_ConstraintLayout · lib/src/core.dart:2225

        int targetIndex = childIndex! + id._siblingIndexOffset;
        id = IndexConstraintId(targetIndex);
      } else if (id is IndexConstraintId) {
        if (id._siblingIndex < 0) {
          id = IndexConstraintId(childCount + id._siblingIndex);
        }
      }

      ConstrainedNode? node;
      int? contextHash;
      if (id.runtimeType == ConstraintId) {
        /// Fewer reads to nodesMap for faster constraint building
        contextHash = buildNodeTreesCount ^ hashCode;
        node = id._getCacheNode(contextHash);
        if (node != null) {
          return node;
        }
      }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…