assertSync function

void assertSync({
  1. required dynamic function(),
})

Implementation

void assertSync({
  required dynamic Function() function,
}) {
  assert(() {
    function();
    return true;
  }());
}