assertAsync function

void assertAsync({
  1. required FutureOr function(),
})

Implementation

void assertAsync({
  required FutureOr<dynamic> Function() function,
}) {
  assert(() {
    Future(function);
    return true;
  }());
}