SelectionContainer.disabled constructor Null safety

const SelectionContainer.disabled(
  1. {Key? key,
  2. required Widget child}
)

Creates a selection container that disables selection for the subtree.

The child must not be null.

Implementation

const SelectionContainer.disabled({
  super.key,
  required this.child,
}) : registrar = null,
     delegate = null;