Skip to content

Instantly share code, notes, and snippets.

@pjbelo
Created August 22, 2022 15:38
Show Gist options
  • Save pjbelo/0aaa4a21564d0d7b5994c518cf3b68c8 to your computer and use it in GitHub Desktop.
Save pjbelo/0aaa4a21564d0d7b5994c518cf3b68c8 to your computer and use it in GitHub Desktop.
print weekday name (v1) [dart]
const Map<int, String> weekdayName = {1: "Monday", 2: "Tuesday", 3: "Wednesday", 4: "Thursday", 5: "Friday", 6: "Saturday", 7: "Sunday"};
void main() {
print(weekdayName[DateTime.now().weekday]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment