show method

void show(
  1. BuildContext context,
  2. ModalTriggerFn builder
)

Implementation

void show(BuildContext context, ModalTriggerFn builder) {
  showDialog(
    context: context,
    builder: (context) {
      return builder(
        context,
        () => close(context),
      );
    },
  );
}