getDuration static method
Implementation
static Duration getDuration(
{required bool isAnimate, required int userMilliseconds}) {
if (isAnimate) {
return Duration(milliseconds: userMilliseconds);
} else {
return const Duration(milliseconds: kNoAnimationDuration);
}
}