ShadertoyContext class Null safety

Maintains a context with Shadertoy related configurations and contant values

It's provided as a one stop source for contextual information in the Shadertoy clients

Inheritance
Annotations

Constructors

ShadertoyContext(String baseUrl)
Builds a Shadertoy context with baseUrl
const
ShadertoyContext.fromJson(Map<String, dynamic> json)
Creates a ShadertoyContext out of a json map
factory

Properties

baseUrl String
The base url of the shadertoy website
@JsonKey(name: 'baseUrl'), final
hashCode int
The hash code for this object. [...]
read-only, inherited
props List<Object>
The list of properties that will be used to determine whether two instances are equal.
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
shaderBrowseUrl String
The browse url
read-only
signInUrl String
The signin url
read-only
signOutUrl String
The signout url
read-only
stringify bool?
If set to true, the toString method will be overridden to output this instance's props. [...]
read-only, inherited

Methods

getShaderEmbedPath(String shaderId) String
The relative path of the shader embed url [...]
getShaderEmbedUrl(String shaderId, {bool gui = false, int t = 10, bool paused = false, bool muted = false}) String
The shader embed url [...]
getShaderPicturePath(String shaderId) String
The relative path of the shader picture url [...]
getShaderPictureUrl(String shaderId) String
The shader picture url [...]
getShaderViewPath(String shaderId) String
The relative path of the shader view url [...]
getShaderViewUrl(String shaderId) String
The shader view url [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
Creates a json map from a ShadertoyContext
toString() String
A string representation of this object. [...]
inherited

Operators

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

Static Methods

shaderEmbedPath(String shaderId) String
The relative path of the shader embed url [...]
shaderPicturePath(String shaderId) String
The relative path of the shader picture url [...]
shaderViewPath(String shaderId) String
The relative path of the shader view url [...]

Constants

browsePath → const String
The relative path to the browse url
'browse'
embedPath → const String
The relative path to the shader embedding
'embed'
imgPath → const String
The relative path to the img url
'img'
shaderMediaPath → const String
The relative path to the shader images previews
'media/shaders'
signInPath → const String
The relative path to the signin url
'signin'
signOutPath → const String
The relative path to the signout url
'signout'
userMediaPath → const String
The relative path to the user image thumbnails
'media/users'
viewPath → const String
The relative path to the shader view url
'view'