Enumeration Example Program in Dart


Example Program:

Here is the simple program for printing basic example of enumeration program in dart.

Source Code

enum days {
  Monday,
  Tuesday,
  Wednesday,
  Thursday,
  Friday,
  Saturday,
  Sunday
}
void main()
{
  print(days.values);
  print(days.Saturday);
}
To download raw file Click Here

Output

days.Monday, days.Tuesday, days.Wednesday, days.Thursday, days.Friday, days.Saturday, days.Sunday]
days.Saturday


Learn All in Tamil © Designed & Developed By Tutor Joes