timeOfDayEmoji property

String get timeOfDayEmoji

Time Of Day Emoji

Returns emoji of time of day in the format ☀️, 🌤️, 🌙 or 🌙

Usage:

DateTime.now().timeOfDayEmoji

Result:

🌤️

Implementation

String get timeOfDayEmoji => timeOfDay(morning: '☀️', afternoon: '🌤️', night: '🌙');