wrap method
Return a copy of this inherited theme with the specified child
.
This implementation for TooltipTheme is typical:
Widget wrap(BuildContext context, Widget child) {
return TooltipTheme(data: data, child: child);
}
Implementation
@override
Widget wrap(BuildContext context, Widget child) {
final SfDataPagerTheme? ancestorTheme =
context.findAncestorWidgetOfExactType<SfDataPagerTheme>();
return identical(this, ancestorTheme)
? child
: SfDataPagerTheme(data: data, child: child);
}