ChatDirectLinkSlug class
Slug of a ChatDirectLink.
Constructors
- ChatDirectLinkSlug(String val)
- ChatDirectLinkSlug.fromJson(String val)
-
Constructs a ChatDirectLinkSlug from the provided
val
.factory - ChatDirectLinkSlug.generate([int length = 10])
-
Creates a random ChatDirectLinkSlug of the provided
length
.factory - ChatDirectLinkSlug.unchecked(String val)
-
Creates an object without any validation.
constfactory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String - Returns a String representing this ChatDirectLinkSlug.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
tryParse(
String val) → ChatDirectLinkSlug? -
Parses the provided
val
as a ChatDirectLinkSlug, ifval
meets the validation, or returnsnull
otherwise.