LayoutIdModifier constructor

const LayoutIdModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. required Object id,
})

Marks a child with a layout identifier.

Both the child and the id arguments must not be null.

Implementation

const LayoutIdModifier({
  super.key,
  super.child,
  super.modifierKey,
  required this.id,
});