detach Badge Drawable
Detaches a BadgeDrawable from its associated anchor. The BadgeDrawable will be removed from its anchor's ViewOverlay. If it has a FrameLayout custom parent that is an ancestor of the anchor, then the BadgeDrawable will be removed from the parent's foreground instead.
open fun detachBadgeDrawable(@Nullable badgeDrawable: BadgeDrawable, @NonNull toolbar: Toolbar, @IdRes menuItemId: Int)
Detaches a BadgeDrawable from its associated action menu item on a toolbar, The BadgeDrawable will be removed from its anchor's ViewOverlay. If it has a FrameLayout custom parent that is an ancestor of the anchor, then the BadgeDrawable will be removed from the parent's foreground instead.