assertCondition 方法

void assertCondition([
  1. bool? condition,
  2. Object? arg
])

实现

void assertCondition([bool? condition, Object? arg]) => _isConsoleDefined
    ? JS('void', 'window.console.assert(#, #)', condition, arg)
    : null;