UrlBuilder<TConfig> class abstract

Provides the main interface for building URLs for Sanity assets.

This class is used to build URLs for Sanity assets such as files, images, and queries.

Implementers

Constructors

UrlBuilder(TConfig config)
Creates a new URL builder with the provided configuration.

Properties

config → TConfig
The configuration object for the client, which is specific to the URL builder implementation.
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

fileUrl(String fileRefId) Uri
Builds a URL for a file asset.
imageUrl(String imageRefId, {ImageOptions? options}) Uri
Builds a URL for an image asset.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queryUrl(String query, {Map<String, String>? params}) Uri
Builds a URL for a GROQ query.
toString() String
A string representation of this object.
inherited

Operators

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