error method Null safety

void error (
  1. Object? arg
)

Implementation

void error(Object? arg) =>
    _isConsoleDefined ? JS('void', 'window.console.error(#)', arg) : null;