schedulePostpone method Null safety

void schedulePostpone(
  1. PostponedTask task
)

Implementation

void schedulePostpone(PostponedTask task) {
  if (hasView) {
    task();
    return;
  }

  _postponedTasks.addLast(task);
}