DirectLinkSlug class

Slug of a DirectLink.

Inheritance

Constructors

DirectLinkSlug(String value)
DirectLinkSlug.fromJson(String val)
Constructs a DirectLinkSlug from the provided val.
factory
DirectLinkSlug.generate([int length = 10])
Creates a random DirectLinkSlug of the provided length.
factory
DirectLinkSlug.unchecked(String val)
Creates an object without any validation.
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
val String
Actual value wrapped by this NewType.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
Returns a String representing this DirectLinkSlug.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

tryParse(String val) DirectLinkSlug?
Parses the provided val as a DirectLinkSlug, if val meets the validation, or returns null otherwise.