revealOnScroll method

DVModifier revealOnScroll({
  1. Duration delay = Duration.zero,
})

Fades and rises into view the first time the box is scrolled to.

Honours reduced motion, where the box is simply present from the first frame -- and it fails open: if the box never gets a position this can read, it appears anyway. Content that a decoration can hide permanently is a worse bug than no decoration.

Implementation

DVModifier revealOnScroll({Duration delay = Duration.zero}) =>
    _copyWith(revealValue: true, revealDelay: delay);