AssetManager constructor

AssetManager(
  1. WebRequest rq
)

Creates an instance of AssetManager and adds a default JS include.

The rq parameter represents the current web request. The constructor adds a default include for the file /app/includes.js with AssetCache.never cache policy.

Implementation

AssetManager(WebRequest rq) {
  includes.insert(
    0,
    Asset(
      rq: rq,
      path: '/app/includes.js',
      cache: AssetCache.never,
    ),
  );
}