openSheet function

void openSheet({
  1. required String title,
  2. String? description,
  3. BloomNode? body,
  4. String side = 'right',
  5. bool showCloseButton = true,
  6. VoidCallback? onClose,
})

Opens a side-panel sheet.

Implementation

void openSheet({
  required String title,
  String? description,
  BloomNode? body,
  String side = 'right',
  bool showCloseButton = true,
  VoidCallback? onClose,
}) {
  activeSheet.value = SheetConfig(
    title: title,
    description: description,
    body: body,
    side: side,
    showCloseButton: showCloseButton,
    onClose: onClose,
  );
}