KeyWordFlutterPC constructor

KeyWordFlutterPC(
  1. String instanceId, {
  2. bool isSticky = false,
})

Creates an instance of KeyWordFlutterPC with the given instanceId.

If isSticky is true (on Android), the underlying service can attempt to run persistently in the background via a foreground service.

Implementation

KeyWordFlutterPC(
  this.instanceId, {
  this.isSticky = false,
}) : _methodChannel = _globalMethodChannel;