merge method

Merges the theme data DialogThemeData.

Implementation

DialogThemeData merge(DialogThemeData? other) {
  if (other == null) {
    return this;
  }
  return copyWith(
    constraints: other.constraints,
    menuPadding: other.menuPadding,
    menuSpacing: other.menuSpacing,
    titlePadding: other.titlePadding,
    bodyPadding: other.bodyPadding,
    background: other.background,
    barrierColor: other.barrierColor,
    titleTextStyle: other.titleTextStyle,
    bodyTextAlign: other.bodyTextAlign,
    imageFilter: other.imageFilter,
  );
}