@@ -22,6 +22,7 @@ Toaster <- R6::R6Class(
2222 # ' @param toasterId Unique number - needed to use more than one toaster
2323 # ' @param session Shiny session object
2424 # ' @param ... Parameters passed to `Toaster` component
25+ # ' @return A new `Toaster` instance.
2526 initialize = function (
2627 toasterId = incrementToasterId(),
2728 session = shiny :: getDefaultReactiveDomain(),
@@ -36,6 +37,7 @@ Toaster <- R6::R6Class(
3637 # ' corresponding to the provided key
3738 # ' @param ... Parameters passed to `Toaster` component
3839 # ' @param key A key of toast to be shown/dismissed
40+ # ' @return Nothing. This method is called for side effects.
3941 show = function (... , key = NULL ) {
4042 props <- list (... )
4143 private $ session $ sendCustomMessage(
@@ -48,6 +50,7 @@ Toaster <- R6::R6Class(
4850 },
4951
5052 # ' @description Dismiss all toasts instantly
53+ # ' @return Nothing. This method is called for side effects.
5154 clear = function () {
5255 private $ session $ sendCustomMessage(
5356 private $ callName(" clear" ),
@@ -57,6 +60,7 @@ Toaster <- R6::R6Class(
5760
5861 # ' @description Dismiss the given toast instantly
5962 # ' @param key A key of toast to be shown/dismissed
63+ # ' @return Nothing. This method is called for side effects.
6064 dismiss = function (key ) {
6165 private $ session $ sendCustomMessage(
6266 private $ callName(" dismiss" ),
0 commit comments