wrap method

  1. @override
Widget wrap(
  1. BuildContext context,
  2. Widget child
)
override

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) {
  return ListTileTheme(
    data: ListTileThemeData(
      dense: dense,
      shape: shape,
      style: style,
      selectedColor: selectedColor,
      iconColor: iconColor,
      textColor: textColor,
      contentPadding: contentPadding,
      tileColor: tileColor,
      selectedTileColor: selectedTileColor,
      enableFeedback: enableFeedback,
      horizontalTitleGap: horizontalTitleGap,
      minVerticalPadding: minVerticalPadding,
      minLeadingWidth: minLeadingWidth,
    ),
    child: child,
  );
}