showSKDialog<T> function

Future<T?> showSKDialog<T>(
  1. Widget child, {
  2. bool isCancelable = true,
  3. BuildContext? context,
  4. BuildContextPredicate buildContextPredicate = _defaultContextPredicate,
})

Implementation

Future<T?> showSKDialog<T>(
  Widget child, {
  bool isCancelable = true,
  BuildContext? context,
  BuildContextPredicate buildContextPredicate = _defaultContextPredicate,
}) {
  if (context == null) {
    _throwIfNoContext(_contextMap.values, 'showAlert');
  }
  context ??= buildContextPredicate(_contextMap.values);

  return showDialog<T>(
    context: context,
    barrierDismissible: isCancelable,
    builder: (context) => child,
  );
}