duration property Null safety
read / write
The length of time this animation should last.
If reverseDuration is specified, then duration is only used when going forward. Otherwise, it specifies the duration going in both directions.
Implementation
Duration? duration;