GlassShaderProgram class

Loads and caches the fragment program once per isolate.

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 Properties

maybeProgram FragmentProgram?
The compiled program, or null if warmUp has not completed or the shader failed to compile. Synchronous so a widget's initState can take the fast path without a frame of plain content.
no setter

Static Methods

warmUp() Future<FragmentProgram?>
Warms the shader so the first glass surface does not pay compilation cost on a visible frame.