getByUrl method

Future<Track> getByUrl(
  1. String url
)

Gets the Track associated with the provided url.

Implementation

Future<Track> getByUrl(String url) async {
  final json = await _controller.resolveUrl(url);
  final track = jsonDecode(json);
  return Track.fromJson(track);
}