assertCondition method Null safety

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

Implementation

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