Utils class
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
Static Properties
-
today
→ DateTime
-
Current date (Same as
Date.now)
no setter
-
tomorrow
→ DateTime
-
Tomorrow at same hour / minute / second than now
no setter
-
yesterday
→ DateTime
-
Yesterday at same hour / minute / second than now
no setter
Static Methods
-
areListsEqual(List list1, List list2)
→ bool
-
Compare two lists for equality.
-
areMapsEqual(Map map1, Map map2)
→ bool
-
Compare two maps for equality.
-
daysInRange(DateTime start, DateTime end)
→ Iterable<DateTime>
-
Returns a DateTime for each day the given range.
-
fastUUID({String prefix = "", bool withDashes = true})
→ String
-
Generate fast uuid with supports for prefix and with dashes or not
-
isEmpty(dynamic obj)
→ bool
-
is null or empty for Map String, List
-
isToday(DateTime date)
→ bool
-
Returns true if is today, otherwise false
-
isTomorrow(DateTime date)
→ bool
-
Returns true if is tomorrow, otherwise false
-
isYesterday(int current)
→ bool
-
Returns true if is yesterday, otherwise false
-
pickup<T>(dynamic target, String keywordsStr)
→ List<T>
-
pickup target attributes for Map, List
-
unique<T>(List<T>? q1, [List<T>? q2])
→ List<T>
-
unique for int, String, double List