name property

String name

Returns sharedWorkerGlobal's name, i.e. the value given to the SharedWorker constructor. Multiple SharedWorker objects can correspond to the same shared worker (and SharedWorkerGlobalScope), by reusing the same name.

MDN Reference

Implementation

_i2.String get name => _i4.getProperty(
      this,
      'name',
    );