show method

Future<T?> show(
  1. BuildContext context
)

Implementation

Future<T?> show(
  BuildContext context,
) async {
  await showDialog(
    context: context,
    builder: (_) => this,
  );
  if (!completer.isCompleted) {
    completer.complete(null);
  }
  return completer.future;
}