getContextAsync static method

void getContextAsync(
  1. ContextGetter getter, [
  2. Duration duration = Duration.zero
])

Implementation

static void getContextAsync(
  ContextGetter getter, [
  Duration duration = Duration.zero,
]) {
  Future.delayed(duration, () {
    BuildContext context = getContext();
    getter(context);
  });
}