MusicModel class

A model class representing a music track.

Contains the essential information for audio playback, such as the url of the audio file, an optional title, and an optional description.

Constructors

MusicModel({required String url, String? title, String? description})
Creates a new MusicModel instance.

Properties

description String?
A short description or metadata about the track (optional).
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String?
The title of the music track (optional).
final
url String
The URL of the music track.
final

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