show<T> static method
Future<T?>
show<T>(
- BuildContext context, {
- bool cancelable = true,
- FxDialogStyle style = FxDialogStyle.center,
- required FxOverlayData<
T> data,
Implementation
static Future<T?> show<T>(
BuildContext context,
{
/// Whether the dialog can be dismissed by tapping outside the dialog.
bool cancelable = true,
/// The style of the dialog: centered or full page. Default is centered.
FxDialogStyle style = FxDialogStyle.center,
/// The data for the dialog.
required FxOverlayData<T> data,
}
) => switch(style) {
FxDialogStyle.center => _showCenter(context, cancelable: cancelable, data: data),
FxDialogStyle.fullPage => _showFullPage(context, cancelable: cancelable, data: data),
};