CompletableFuture<T>.value constructor

  1. @Deprecated("CompletableFuture will be removed in 2.0.0. " "Use ResultFuture with Future.value instead.\n" "See package:my_utility/async/result_future.dart")
CompletableFuture<T>.value([
  1. FutureOr<T>? value
])

Same as Future.value.

Implementation

@Deprecated(
  "CompletableFuture will be removed in 2.0.0. "
  "Use ResultFuture with Future.value instead.\n"
  "See package:my_utility/async/result_future.dart",
)
factory CompletableFuture.value([FutureOr<T>? value]) {
  return CompletableFuture.fromFuture(Future.value(value));
}