Symbol class Symbols

Symbols provide a categorical shape encoding as in a scatterplot.

Symbols are centered at the origin; use a transform to move the symbol to a different position.

Constructors

Symbol.new({SymbolType type(Symbol, [List<Object?>?])?, num size(Symbol, [List<Object?>?])?})
Constructs a new symbol generator of the specified type and size accessors.
Symbol.withConstants({SymbolType? type, num? size})
Constructs a new symbol generator of the specified type and size.

Properties

context ↔ Path?
Optional context for rendering the generated symbol (see Symbol.call) as a sequence of path method calls.
getter/setter pair
digits num?
The maximum number of digits after the decimal separator.
getter/setter pairinherited-setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size num Function(Symbol, [List<Object?>?])
The symbol size.
getter/setter pair
type SymbolType Function(Symbol, [List<Object?>?])
The symbol type.
getter/setter pair

Methods

call([List<Object?>? args]) String?
Generates a symbol for the given args.
constSize(num size) → void
Defines the Symbol.size-accessor as a constant function that always returns the specified value.
constType(SymbolType type) → void
Defines the Symbol.type-accessor as a constant function that always returns the specified value.
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