Future.value([value])

A future whose value is available in the next event-loop iteration.

If value is not a Future, using this constructor is equivalent to new Future<T>.sync(() => value).

Use Completer to create a Future and complete it later.

Source

factory Future.value([value]) {
  return new _Future<T>.immediate(value);
}