get method

Future<Track> get(
  1. int trackId
)

Gets the Track with the specified trackId.

Implementation

Future<Track> get(int trackId) async {
  throwIfNegative(trackId, 'trackId');
  final track = await _getTrackResponse(trackId);
  return Track.fromJson(track);
}