FragmentProgram class Null safety

An instance of FragmentProgram creates Shader objects (as used by Paint.shader) that run SPIR-V code.

This API is in beta and does not yet work on web. See https://github.com/flutter/flutter/projects/207 for roadmap.

A current specification of valid SPIR-V is here.

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
shader({Float32List? floatUniforms, List<ImageShader>? samplerUniforms}) Shader
Constructs a Shader object suitable for use by Paint.shader with the given uniforms.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromAsset(String assetKey) Future<FragmentProgram>
Creates a fragment program from the asset with key assetKey.