uri static method

Uri uri(
  1. String protocol,
  2. String host,
  3. String path
)

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.

Implementation

static Uri uri(String protocol, String host, String path) {
    final uri = Uri(scheme: protocol, host: host, path: path);
    return uri;
  }