instance property

HeadManager get instance

Get the current HeadManager.

On the server, this returns the request-scoped instance from the current Zone. On the client, this returns the global singleton.

Implementation

static HeadManager get instance {
  return Zone.current[_headManagerKey] as HeadManager? ?? _globalInstance;
}