generate method

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

Implementation

@override
Widget generate(Context context) {
  var cmd = 'enchant ';
  cmd += '$target $enchantment';
  if (level != null) cmd += ' $level';

  return Command(cmd);
}