Endpoint class
The Endpoint class contains two static methods: uri and parseUri. Static methods are associated with the class itself rather than with instances of the class, allowing you to call them directly on the class. These methods provide convenient ways to create and parse URIs in Dart programming. They allow you to easily generate URIs with specific schemes, hosts, and paths, as well as parse existing URI strings into Uri objects.
Constructors
- Endpoint()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Static Methods
-
parseUri(
String url) → Uri - Parameter: url (String). Functionality: This method takes a url string and parses it into a Uri object. The Uri.parse method is used to parse the url string and create a Uri object. The created Uri object is returned.
-
uri(
String protocol, String host, String path) → Uri - Parameters: protocol (String), host (String), path (String). Functionality: This method creates a Uri object by combining the provided protocol, host, and path values. The Uri class represents a Uniform Resource Identifier (URI) and provides methods for working with URIs. The Uri object is created using the Uri constructor with the specified protocol, host, and path values. The created Uri object is returned.