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