wrap method
Implementation
Widget wrap(
Widget child, {
String? fallbackLabel,
bool image = true,
bool container = true,
}) {
if (excludeFromSemantics) {
return ExcludeSemantics(child: child);
}
final label = semanticLabel?.trim().isNotEmpty == true
? semanticLabel!.trim()
: fallbackLabel?.trim();
if (label == null || label.isEmpty) return child;
return Semantics(
label: label,
image: image,
container: container,
child: child,
);
}