encode static method
Implementation
static String encode(Trigger value) {
switch (value) {
case Trigger.init:
return 'INIT';
case Trigger.change:
return 'CHANGE';
case Trigger.click:
return 'CLICK';
case Trigger.visible:
return 'VISIBLE';
case Trigger.error:
return 'ERROR';
case Trigger.valid:
return 'VALID';
case Trigger.event:
return 'EVENT';
}
}