TimeEmojiUtils class

Utility class for handling time-related emojis, specifically for day/night representation.

Constructors

TimeEmojiUtils.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getEmojiDayOrNight(int? tzHour) String?
Returns sunEmoji if the given hour is between 8am (exclusive of 7am) and 5pm (exclusive of 6pm), otherwise returns moonEmoji.

Constants

moonEmoji → const String
Emoji representing the moon (🌙).
sunEmoji → const String
Emoji representing the sun (☀️).