toEnd<T> method

Future<T> toEnd<T>(
  1. FutureOr<T> computation()
)

Implementation

Future<T> toEnd<T>(FutureOr<T> Function() computation) async {
  await Future.delayed(Duration.zero);
  final val = computation();
  return val;
}