show static method

Future<void> show(
  1. BuildContext context, {
  2. String? title,
  3. String? message,
  4. required List<ActionSheetItem> actions,
  5. String? cancelText,
  6. bool showCancel = true,
})

Implementation

static Future<void> show(
  BuildContext context, {
  String? title,
  String? message,
  required List<ActionSheetItem> actions,
  String? cancelText,
  bool showCancel = true,
}) {
  return showModalBottomSheet<void>(
    context: context,
    backgroundColor: Colors.transparent,
    isScrollControlled: true,
    builder: (BuildContext buildContext) {
      return _createWidget(
          buildContext,
          title: title,
          message: message,
          actions: actions,
          showCancel: showCancel,
          cancelText: cancelText);
    },
  );
}