semantics method

Widget semantics({
  1. String? label,
  2. String? hint,
  3. bool? button,
  4. bool? header,
  5. bool excludeSemantics = false,
})

Wraps widget with Semantics (simplified version)

Implementation

Widget semantics({
  String? label,
  String? hint,
  bool? button,
  bool? header,
  bool excludeSemantics = false,
}) => Semantics(
  label: label,
  hint: hint,
  button: button,
  header: header,
  excludeSemantics: excludeSemantics,
  child: this,
);