splashDelay function

Future<void> splashDelay({
  1. int second = 2,
})

Use this if you want to skip splash delay above Android 12

Implementation

Future<void> splashDelay({int second = 2}) async {
  if (await isAndroid12Above()) {
    await 300.milliseconds.delay;
  } else {
    await second.seconds.delay;
  }
}