ShorteStShortener class

shorte.st link shortener class. shorte.st only provide just one api to work with short links.

Example::-

try{
  final shortener = ShorteStShortener( accessToken:"YOUR_TOKEN");
  final linkData = await shortener.generateShortLink("www.abc.xyz");
  print(linkData.shortenedUrl);
} on Exception catch(e){//For Bad Requests
  print(e);
}

Constructors

ShorteStShortener({required String accessToken})

Properties

accessToken String
access token provided by shorte.st. must not be null or empty.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

Generate Short Link.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited