duration property
Duration for how long flutter splash screen should stay.
NOTE: Do not use duration with asyncNavigationCallback as asyncNavigationCallback's aim is to navigate only after call back completes.
duration: const Duration(milliseconds: 2000),
Implementation
Duration? duration;