merge static method

Widget merge({
  1. Key? key,
  2. ListTileStyle? style,
  3. ListTileThemeData? data,
  4. required Widget child,
})

Creates an ListTileTheme that controls the style of descendant widgets, and merges in the current ListTileTheme, if any.

The child arguments must not be null.

Implementation

static Widget merge({
  Key? key,
  ListTileStyle? style,
  ListTileThemeData? data,
  required Widget child,
}) {
  return Builder(
    builder: (BuildContext context) {
      final parent = ListTileTheme.of(context);
      return ListTileTheme(
        key: key,
        data: parent.merge(data),
        child: child,
      );
    },
  );
}