toEnd<T> method Null safety

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

    Implementation

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