show<T> method

Future<T?> show<T>({
  1. bool isScrollControlled = true,
})

Implementation

Future<T?> show<T>({final bool isScrollControlled = true}) {
  isOpened = true;

  return showModalBottomSheet<T>(
    context: context,
    backgroundColor: Colors.transparent,
    isScrollControlled: isScrollControlled,
    useSafeArea: true,
    builder: (_) => _buildBottomSheet(),
  ).then((value) {
    isOpened = false;
    return value;
  });
}