show<T> static method

Future<T?> show<T>(
  1. BuildContext context, {
  2. bool cancelable = true,
  3. FxDialogStyle style = FxDialogStyle.center,
  4. 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),
};