show<T> static method

Future<T?> show<T>(
  1. BuildContext context, {
  2. required DigitDialogOptions options,
})

Implementation

static Future<T?> show<T>(
  BuildContext context, {
  required DigitDialogOptions options,
}) {
  return showDialog<T>(
    context: context,
    barrierDismissible: options.barrierDismissible,
    barrierColor: options.barrierColor ??
        DigitTheme.instance.colors.black.withOpacity(0.7),
    builder: (context) => PopScope(
      canPop: options.barrierDismissible,
      child: DigitDialog(
        key: options.key,
        options: options,
      ),
    ),
  );
}