showGenericDialog<T> function
- BuildContext context, {
- required String title,
- required Widget content,
- List<
DialogAction> ? actions, - bool shrinkWrap = true,
Shows a GenericDialog with the given title
and content
to the user.
Implementation
Future<T?> showGenericDialog<T>(
BuildContext context, {
required String title,
required Widget content,
List<DialogAction>? actions,
bool shrinkWrap = true,
}) {
return showAnimatedDialog<T>(
context: context,
pageBuilder: (_, __, ___) => GenericDialog(
title: title,
content: content,
actions: actions,
shrinkWrap: shrinkWrap,
),
);
}