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.
link

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

Implementation

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