kDefaultToastAnimationDuration top-level constant

Duration const kDefaultToastAnimationDuration

Default animation duration When you use Curves.elasticOut, you can specify a longer duration to achieve beautiful effect But animDuration * 2 <= toast duration, conditions must be met for toast to display properly so when you specify a longer animation duration, you must also specify toast duration to satisfy conditions above


const kDefaultToastAnimationDuration = Duration(milliseconds: 250);