SelectionContainerModifier constructor

const SelectionContainerModifier({
  1. Key? key,
  2. Key? modifierKey,
  3. Widget? child,
  4. SelectionRegistrar? registrar,
  5. required SelectionContainerDelegate delegate,
})

Creates a selection container to collect the Selectables in the subtree.

If registrar is not provided, this selection container gets the SelectionRegistrar from the context instead.

The delegate and child must not be null.

Implementation

const SelectionContainerModifier({
  super.key,
  super.modifierKey,
  super.child,
  this.registrar,
  required SelectionContainerDelegate this.delegate,
}) : assert(delegate != null);