show static method

CancelFunc show({
  1. String? title = '',
  2. String? text,
  3. List<Widget>? widgets,
  4. List<Widget>? actions,
  5. VoidCallback? onClose,
  6. bool iconClose = true,
})

Implementation

static CancelFunc show({
  String? title = '',
  String? text,
  List<Widget>? widgets,
  List<Widget>? actions,
  VoidCallback? onClose,
  bool iconClose = true,
}) {
  CancelFunc? cancel;
  cancel = BotToast.showAttachedWidget(
    allowClick: false,
    onClose: onClose,
    onlyOne: false,
    attachedBuilder:
        (_) => _ColabDialogBottomSheet(
          title: title,
          text: text,
          widgets: widgets,
          actions: actions,
          cancel: cancel!,
          iconClose: iconClose,
        ),
    backgroundColor: backdropColor,
    target: Offset(0, 0),
  );
  return cancel;
}