ServiceSpec constructor

const ServiceSpec({
  1. Input<RevisionTemplate>? template,
  2. Input<List<TrafficTarget>>? traffic,
})

Creates a new ServiceSpec. template Holds the latest specification for the Revision to be stamped out. traffic Specifies how to distribute traffic over a collection of Knative Revisions and Configurations to the Service's main URL.

Implementation

const ServiceSpec({
  this.template,
  this.traffic,
});