getInputUses method

dynamic getInputUses(
  1. int index,
  2. dynamic fn(
    1. dynamic arg,
    2. dynamic command
    )
)

Implementation

dynamic getInputUses(int index, Function(dynamic arg, dynamic command) fn) {
	mapArguments((arg, command) {
		if (arg["Input"] != null && arg["Input"] == index) {
			fn(arg, command);
		}

		return arg;
	});
}