getSandbox method
Implementation
Set<Sandbox> getSandbox() {
var sandbox = iframe.sandbox;
Set<Sandbox> values = Set();
if (sandbox != null) {
for (int i = 0; i < sandbox.length; i++) {
var token = Sandbox.fromNativeValue(sandbox.item(i));
if (token != null) {
values.add(token);
}
}
}
return values.isEmpty ? Set.from(Sandbox.values) : values;
}