dialog<T> method

Future<T?> dialog<T>(
  1. Widget page, {
  2. bool dismissible = true,
})

Implementation

Future<T?> dialog<T>(Widget page, {bool dismissible = true}) async {
  return await showDialog<T?>(
    context: this,
    builder: (_) => page,
    barrierDismissible: dismissible,
  );
}