wrap method
Returns a copy of ScrollbarTheme with the specified child
.
Implementation
@override
Widget wrap(
BuildContext context,
Widget child,
) {
final ScrollbarTheme? scrollbarTheme =
context.findAncestorWidgetOfExactType<ScrollbarTheme>();
return identical(this, scrollbarTheme)
? child
: ScrollbarTheme(data: data, child: child);
}