In 3.10, @lrhn implemented a new Future.syncValue, which is more performant than the base Future.value when the user knows the value is not a Future (from here dart-lang/sdk#57495 (comment)). I've implemented future_sync_value over at dart-lang/sdk#61740.
This is a request to add it to core or at least to the recommended set.
In 3.10, @lrhn implemented a new
Future.syncValue, which is more performant than the baseFuture.valuewhen the user knows the value is not aFuture(from here dart-lang/sdk#57495 (comment)). I've implementedfuture_sync_valueover at dart-lang/sdk#61740.This is a request to add it to core or at least to the recommended set.