extractId static method

String extractId(
  1. String url
)

Extract the URI from a Spotify URL.

Implementation

static String extractId(String url) {
  return url.split('/').last.split('?si=').first;
}