operator [] method
Implementation
String? operator [](Object? key) {
if (key is String) {
for (var i = 0; i < arguments.length; i++) {
String arg = arguments[i];
if (arg == key) {
try {
return arguments[i + 1];
} catch (e) {
return null;
}
}
}
}
if (key is int) {
try {
return arguments[key];
} catch (e) {
return null;
}
}
if (key is List<String>) {
for (final String data in key) {
final String? args_data = this[data];
if (args_data != null) {
return args_data;
}
}
}
return null;
}