DateUtils mixin

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

day(int day, [dynamic locale]) string
Returns the name of the day corresponding to the given day index.
days([string? locale]) List<string>
Returns a list of strings representing the names of the days of the week.
getHealthColorsForMonth(int month) Iterable<Color>
Return a list of colors for the specified month based on health awareness campaigns
getHealthGradientForMonth({required int month, AlignmentGeometry begin = Alignment.topCenter, AlignmentGeometry end = Alignment.bottomCenter, List<double>? stops, TileMode tileMode = TileMode.clamp, GradientTransform? transform}) Gradient
Returns a gradient for the specified month based on health awareness campaigns
getSeasonColors(int month) Iterable<NamedColor>
Return a list of colors for the specified month based on season
getSeasonGradient({required int month, AlignmentGeometry begin = Alignment.topCenter, AlignmentGeometry end = Alignment.bottomCenter, List<double>? stops, TileMode tileMode = TileMode.clamp, GradientTransform? transform}) Gradient
Return a gradient for the specified month based on season
lastDayOfMonth(int month, [int? year]) int
Returns the last day of the specified month.
month(int month, [string? locale]) string
Returns the name of the month corresponding to the given month number.
months([string? locale]) List<string>
Returns a list of month names.