SvgFunctions class





context Contexts
read / write, inherited
currentFileInfo FileInfo
read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
index int
read / write, inherited
less TreeApi
read / write, inherited
name String
read / write, inherited
registry Map<String, FunctionRegistryItem>
Method registry: { 'externalName': {'name': internalName, 'listArguments': false} }
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


call(List<Node> args) → dynamic
Call the last valid name of method
init(Contexts context, int index, FileInfo currentFileInfo) → void
Config functions with the necessarry information for processing
isValid(String name) bool
Check if name is a method name available
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
svgGradient(List<Node> arguments) URL
svg-gradient function generates multi-stop svg gradients. It must have at least three parameters. First parameter specifies gradient type and direction and remaining parameters list colors and their positions. The position of first and last specified color are optional, remaining colors must have positions specified. The direction must be one of to bottom, to right, to bottom right, to top right, ellipse or ellipse at center. The direction can be specified as both escaped value and space separated list of words. Parameters: escaped value or list of identifiers: direction color percentage pair: first color and its relative position (position is optional) color percent pair: (optional) second color and its relative position ... color percent pair: (optional) n-th color and its relative position color percentage pair: last color and its relative position (position is optional) Returns: url with base64 encoded svg gradient.
@DefineMethod(name: 'svg-gradient', listArguments: true)
toString() String
A string representation of this object. [...]


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