name method
Gets the name of the value.
Implementation
String name() {
switch (_value) {
case 'allow-downloads':
return 'ALLOW_DOWNLOADS';
case 'allow-forms':
return 'ALLOW_FORMS';
case 'allow-modals':
return 'ALLOW_MODALS';
case 'allow-orientation-lock':
return 'ALLOW_ORIENTATION_LOCK';
case 'allow-pointer-lock':
return 'ALLOW_POINTER_LOCK';
case 'allow-popups':
return 'ALLOW_POPUPS';
case 'allow-popups-to-escape-sandbox':
return 'ALLOW_POPUPS_TO_ESCAPE_SANDBOX';
case 'allow-presentation':
return 'ALLOW_PRESENTATION';
case 'allow-same-origin':
return 'ALLOW_SAME_ORIGIN';
case 'allow-scripts':
return 'ALLOW_SCRIPTS';
case 'allow-top-navigation':
return 'ALLOW_TOP_NAVIGATION';
case 'allow-top-navigation-by-user-activation':
return 'ALLOW_TOP_NAVIGATION_BY_USER_ACTIVATION';
}
return _value.toString();
}