discardInAppMessages method
Drop the in-app messages that are queued to show.
Messages stay paused afterwards, call resumeInAppMessages to show new
ones. When dismissCurrent is true, the message on screen is closed too.
Throws GrovsException if the operation fails.
Implementation
Future<void> discardInAppMessages({bool dismissCurrent = false}) {
return GrovsPlatform.instance.discardInAppMessages(
dismissCurrent: dismissCurrent,
);
}