semantics method

Widget semantics({
  1. required String label,
  2. bool button = false,
})

Wraps in a Semantics node with label.

Implementation

Widget semantics({required String label, bool button = false}) =>
    Semantics(label: label, button: button, child: this);