Script class

Annotations

Constructors

Script()
Script.empty()
Factory method to create an empty Script object for skeleton loading states
factory
Script.fromJson(Map<String, dynamic> json)
factory

Properties

compatibility_date DateTime
Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
getter/setter pair
compatibility_flags List<String>
Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a compatibility_date.
getter/setter pair
created_on DateTime
When the script was created.
getter/setter pair
etag String?
Hashed script content, can be used in a If-None-Match header when updating.
getter/setter pair
handlers List<String>
When the Worker was created.
getter/setter pair
has_assets bool
Whether a Worker contains assets.
getter/setter pair
has_modules bool
Whether a Worker contains modules.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String
The id of the script in the Workers system. Usually the script name.
getter/setter pair
last_deployed_from String?
The client most recently used to deploy this Worker.
getter/setter pair
logpush bool
Whether Logpush is turned on for the Worker.
getter/setter pair
migration_tag String?
The tag of the Durable Object migration that was most recently applied for this Worker.
getter/setter pair
modified_on DateTime
When the script was last modified.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
usage_model WorkerUsageModel
Usage model for the Worker invocations.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited