wrap method
Returns a copy of DialogTheme with the specified child
.
Implementation
@override
Widget wrap(
BuildContext context,
Widget child,
) {
final DialogTheme? dialogTheme =
context.findAncestorWidgetOfExactType<DialogTheme>();
return identical(this, dialogTheme)
? child
: DialogTheme(data: data, child: child);
}