getInputNames method
Get input names from the session
Implementation
List<String> getInputNames(JSObject session) {
final inputNames = <String>[];
try {
final inputs = session.getProperty('inputNames'.toJS) as JSObject;
final length = (inputs.getProperty('length'.toJS) as JSNumber).toDartInt;
for (var i = 0; i < length; i++) {
final name = inputs.getProperty(i.toString().toJS);
inputNames.add(name.toString());
}
} catch (e) {
// print('Error getting input names: $e');
}
return inputNames;
}