LayoutId constructor

LayoutId({
  1. Key? key,
  2. required Object id,
  3. required Widget child,
})

Marks a child with a layout identifier.

Implementation

LayoutId({
  Key? key,
  required this.id,
  required super.child,
}) : super(key: key ?? ValueKey<Object>(id));