log 方法

void log(
  1. Object? arg
)

实现

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