Vimeo.fromUrl constructor

Vimeo.fromUrl(
  1. Uri url, {
  2. String? accessKey,
})

Implementation

factory Vimeo.fromUrl(Uri url, {String? accessKey}) {
  String? vId;
  vId = url.pathSegments.last;

  return Vimeo(
    videoId: vId,
    accessKey: accessKey,
  );
}