showSKDialog<T> function
Future<T?>
showSKDialog<T>(
- Widget child, {
- bool isCancelable = true,
- BuildContext? context,
- 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,
);
}