UmbraWidget class abstract

Abstract widget that shader widgets who are generated by Umbra will use.

Inheritance

Constructors

UmbraWidget({Key? key, BlendMode blendMode = BlendMode.src, Widget? child, ShaderErrorWidgetBuilder? errorBuilder, ShaderCompilingBuilder? compilingBuilder})
Abstract widget that shader widgets who are generated by Umbra will use.
const

Properties

blendMode BlendMode
The blend mode to use when applying the shader mask.
final
child Widget?
The optional child widget to apply the shader mask to.
final
compilingBuilder ShaderCompilingBuilder?
A builder that specifies the widget to display to the user while a shader is still compiling.
final
errorBuilder ShaderErrorWidgetBuilder?
A builder function that is called if an error occurs during shader compilation.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
getFloatUniforms() List<double>
Returns the float uniforms to pass to the shader.
getSamplerUniforms() List<ImageShader>
Returns the sampler uniforms to pass to the shader.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
program() Future<FragmentProgram>
The Fragment Shader program to use.
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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