Execute constructor

Execute({
  1. List<Widget> children = const [],
  2. Entity? as,
  3. Entity? at,
  4. Relation? on,
  5. dynamic location,
  6. String? align,
  7. String targetFilePath = 'objd',
  8. String? targetFileName,
  9. Facing? anchor,
  10. Condition? If,
  11. Condition? unless,
  12. dynamic facing,
  13. Rotation? rotation,
  14. Dimension? dimension,
  15. bool encapsulate = true,
  16. List<List<String>>? args,
  17. List<Widget>? writable,
})

All Execute classes are also an Group, so they will group commands in seperate files and allow multiple children.

Implementation

Execute({
  this.children = const [],
  Entity? as,
  Entity? at,
  Relation? on,
  dynamic location,
  String? align,
  this.targetFilePath = 'objd',
  this.targetFileName,
  Facing? anchor,
  Condition? If,
  Condition? unless,
  dynamic facing,
  Rotation? rotation,
  Dimension? dimension,
  this.encapsulate = true,
  List<List<String>>? args,
  List<Widget>? writable,
}) {
  if (args != null) _args = args;

  if (on != null) _args = this.on(on).args;
  if (as != null) _args = this.as(as).args;
  if (at != null) _args = this.at(at).args;
  if (location != null) _args = positioned(location).args;
  if (align != null) _args = this.align(align).args;
  if (anchor != null) _args = anchored(anchor).args;
  if (facing != null) _args = this.facing(facing).args;
  if (rotation != null) _args = rotated(rotation).args;
  if (dimension != null) _args = this.dimension(dimension).args;
  if (If != null) _args = this.If(If).args;
  if (unless != null) _args = this.unless(unless).args;

  this.writable = writable;
}