merge static method

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

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

The style and child arguments must not be null.

Implementation

static Widget merge({
  Key? key,
  TextTileStyle? style,
  TextTileThemeData? data,
  required Widget child,
}) {
  return Builder(
    builder: (BuildContext context) {
      final parent = TextTileTheme.of(context);
      return TextTileTheme(
        key: key,
        data: parent.merge(data).copyWith(style: style),
        child: child,
      );
    },
  );
}