PaintToast#
func PaintToast(canvas *ui.Canvas, theme ui.Theme, viewport ui.Rect, snapshot ToastSnapshot, options ToastOptions) ToastLayoutPaintToast paints one toast snapshot at the viewport position the options name, bottom right by default. Its height follows its text: the description wraps. It schedules no work and retains no lifetime state, except that a loading toast asks for a frame every 100ms to turn its spinner, until it is no longer painted.