showUndisposable<T> method
Future<T?>
showUndisposable<
T>({ - bool isScrollControlled = true,
})
Implementation
Future<T?> showUndisposable<T>({final bool isScrollControlled = true}) {
isOpened = true;
return showModalBottomSheet<T>(
context: context,
backgroundColor: Colors.transparent,
isScrollControlled: isScrollControlled,
enableDrag: false,
isDismissible: false,
builder:
(_) => PopScope(
canPop: false,
child: _buildBottomSheet(hideGrabber: true),
),
).then((value) {
isOpened = false;
return value;
});
}