SynchronousFuture<T> constructor Null safety

SynchronousFuture<T>(
  1. T _value
)

Creates a synchronous future.

See also:

  • Future.value for information about creating a regular Future that completes with a value.

Implementation

SynchronousFuture(this._value);