NoizArtPainter class

Inheritance

Constructors

NoizArtPainter()

Properties

alignmentList List<Alignment>
final
backgroundPaint Paint
read / write
fillPaint Paint
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
listColors List<Color>
read-only
rng Random
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
screenCanvas Canvas
read / write
screenHeight double
read / write
screenSize Size
read / write
screenWidth double
read / write
semanticsBuilder SemanticsBuilderCallback
Returns a function that builds semantic information for the picture drawn by this painter. [...]
read-only, inherited
strokePaint Paint
read / write
useFill bool
read / write
useStroke bool
read / write

Methods

addColor(Color newColor) → void
addListener(VoidCallback listener) → void
Register a closure to be notified when it is time to repaint. [...]
inherited
background(Color color) → void
color(num r, num g, num b, [num a = 255]) Color
draw() → void
ellipse(double x, double y, double w, [double h]) → void
emptyColors() → void
fill(Color color) → void
getSize() Future<void>
gradientBackground({List<Color> colors}) → void
hexColor(String hexColorString) Color
hitTest(Offset position) bool
Called whenever a hit test is being performed on an object that is using this custom paint delegate. [...]
inherited
init() → void
line(double x1, double y1, double x2, double y2) → void
noFill() → void
noStroke() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
paint(Canvas canvas, Size size) → void
Called whenever the object needs to paint. The given Canvas has its coordinate space configured such that the origin is at the top left of the box. The area of the box is the size of the size argument. [...]
override
radialGradientBackground({Alignment center = Alignment.center, double radius = 1.5, List<Color> colors}) → void
random([dynamic arg1, dynamic arg2]) → dynamic
rect(double x, double y, double w, double h) → void
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that the object notifies when it is time to repaint. [...]
inherited
reset() → void
setRng([int seed]) → void
shouldRebuildSemantics(covariant CustomPainter oldDelegate) bool
Called whenever a new instance of the custom painter delegate class is provided to the RenderCustomPaint object, or any time that a new CustomPaint object is created with a new instance of the custom painter delegate class (which amounts to the same thing, because the latter is implemented in terms of the former). [...]
inherited
shouldRepaint(covariant CustomPainter oldDelegate) bool
Called whenever a new instance of the custom painter delegate class is provided to the RenderCustomPaint object, or any time that a new CustomPaint object is created with a new instance of the custom painter delegate class (which amounts to the same thing, because the latter is implemented in terms of the former). [...]
override
stroke(Color color) → void
strokeWeight(num weight) → void
toString() String
A string representation of this object. [...]
inherited

Operators

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