PluginInformation constructor

PluginInformation(
  1. String id,
  2. String? executable,
  3. int port,
  4. Declaration declaration, [
  5. CommunicationSecret? secret,
])

Creates a PluginInformation with the given properties:

  • executable the string required for platform specific wakeup of a plugin
  • port the port of the plugin to be contacted on
  • secret the secret required for communicating (if null a new secret is generated)

Implementation

PluginInformation(this.id, this.executable, this.port, this.declaration,
    [CommunicationSecret? secret]) {
  this.secret = secret ?? CommunicationSecret.random();
}