PublicationServiceContext class

Container for the context from which a service is created.

@param publication Reference to the parent publication. Don't store directly the referenced publication, always access it through the Ref property. The publication won't be set when the service is created or when calling PublicationService.links, but you can use it during regular service operations. If you need to initialize your service differently depending on the publication, use manifest.

Constructors

PublicationServiceContext(Ref<Publication> publication, Manifest manifest, Fetcher fetcher)

Properties

fetcher Fetcher
final
hashCode int
The hash code for this object.
no setterinherited
manifest Manifest
final
publication → Ref<Publication>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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