SelectionScope constructor

const SelectionScope({
  1. Key? key,
  2. required SelectionRegistrar? registrar,
  3. required Widget child,
})

registrar is the registrar that ought to own Selectables in this subtree, or null to disable selection for the subtree (Selectables there see no ambient registrar and silently no-op).

Implementation

const SelectionScope({
  super.key,
  required SelectionRegistrar? registrar,
  required super.child,
}) : super(registrar ?? const _NoSelection());