Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

dart switch

var command = 'OPEN';
switch (command) {
  case 'CLOSED':
    executeClosed();
    break;
  case 'DENIED':
    executeDenied();
    break;
  case 'OPEN':
    executeOpen();
    break;
  default:
    executeUnknown();
}
Source by dart.dev #
 
PREVIOUS NEXT
Tagged: #dart #switch
ADD COMMENT
Topic
Name
3+5 =