ChartItem class
Constructors
-
ChartItem({required String title, required String artists, required String videoId, String? duration, String? albumArt, String? audioUrl, required String country, required String chartType, String? rank, String trend = 'neutral', String? views, bool isExplicit = false, String? playlistId, Map<
String, dynamic> ? album}) -
ChartItem.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
album
→ Map<
String, dynamic> ? -
final
- albumArt → String?
-
final
- artists → String
-
final
- audioUrl → String?
-
final
- chartPosition → String
-
Returns a display string for the chart position
no setter
- chartType → String
-
final
- country → String
-
final
- duration → String?
-
final
- formattedViews → String
-
Returns formatted views count
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- isChartSong → bool
-
Returns true if this is a chart song (has rank)
no setter
- isChartVideo → bool
-
Returns true if this is a chart video
no setter
- isExplicit → bool
-
final
- isTrending → bool
-
Returns true if this is a trending video
no setter
- playlistId → String?
-
final
- rank → String?
-
final
- rankAsInt → int?
-
Returns the rank as an integer, or null if not available
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String
-
final
- trend → String
-
final
- trendEmoji → String
-
Returns trend emoji
no setter
- videoId → String
-
final
- views → String?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override