SelectionContainer.disabled constructor

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

Creates a selection container that disables selection for the subtree.

This sample demonstrates how to disable selection for a Text under a SelectionArea.

To create a local project with this code sample, run:
flutter create --sample=widgets.SelectionContainer.disabled.1 mysample

The child must not be null.


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