Execute.on constructor

Execute.on(
  1. Relation relation, {
  2. required List<Widget> children,
  3. bool encapsulate = true,
  4. String targetFilePath = 'objd',
  5. String? targetFileName,
})

Changes the executor to a related entity, but keeps the position the same

takes in a relation type which is either Relation.attacker, Relation.controller, Relation.leasher, Relation.origin, Relation.owner, Relation.passengers, Relation.target, Relation.vehicle

Implementation

Execute.on(
  Relation relation, {
  required this.children,
  this.encapsulate = true,
  this.targetFilePath = 'objd',
  this.targetFileName,
}) {
  _args = on(relation).args;
}