Vimeo.fromUrl constructor
Implementation
factory Vimeo.fromUrl(Uri url, {String? accessKey}) {
String? vId;
String? eId;
if (url.pathSegments.contains('event')) {
eId = url.pathSegments.last;
} else {
vId = url.pathSegments.last;
}
return Vimeo(
videoId: vId,
eventId: eId,
accessKey: accessKey,
);
}