generate method

  1. @override
Widget generate(
  1. Context context
)
override

Implementation

@override
Widget generate(Context context) {
  var cmd = 'spawnpoint';
  if (entity != null) {
    cmd += ' $entity';
    if (position != null) cmd += ' $position';
  }

  return Command(cmd);
}