ShadertoyContext class
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
- Annotations
-
- @JsonSerializable()
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
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
props
→ List<
Object> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shaderBrowseUrl → String
-
The browse url
no setter
- signInUrl → String
-
The signin url
no setter
- signOutUrl → String
-
The signout url
no setter
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited
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 nonexistent 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
- embedPath → const String
- The relative path to the shader embedding
- imgPath → const String
- The relative path to the img url
- shaderMediaPath → const String
- The relative path to the shader images previews
- signInPath → const String
- The relative path to the signin url
- signOutPath → const String
- The relative path to the signout url
- userMediaPath → const String
- The relative path to the user image thumbnails
- viewPath → const String
- The relative path to the shader view url