INNER CODE UNIT · Dart
IndexConstraintId
hackware1993/Flutter_ConstraintLayout · lib/src/core.dart:394
class IndexConstraintId extends ConstraintId {
/// [0, childCount-1]
/// -1 represents the last element
/// -2 represents the second to last element, and so on
final int _siblingIndex;
IndexConstraintId(this._siblingIndex)
: super('parent.children[$_siblingIndex]');
@override
ConstraintId _copy() {
return IndexConstraintId(_siblingIndex);
}
}
/// A relative id type that is referenced by index offsets between child elements
class RelativeConstraintId extends ConstraintId {
/// [-childCount+1),childCount-1]