VectorGraphicsCodecListener class abstract

Implement this listener class to support decoding of vector_graphics binary assets.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onClipPath(int pathId) → void
Apply the specified paths as clips to the current canvas.
onDrawImage(int imageId, double x, double y, double width, double height, Float64List? transform) → void
An image should be drawn at the provided location.
onDrawPath(int pathId, int? paintId, int? patternId) → void
Draw the given pathId with the given paintId.
onDrawText(int textId, int? fillId, int? strokeId, int? patternId) → void
A text block has been decoded.
onDrawVertices(Float32List vertices, Uint16List? indices, int? paintId) → void
Draw the vertices with the given vertices and optionally index buffer indices.
onImage(int imageId, int format, Uint8List data, {VectorGraphicsErrorListener? onError}) → void
An encoded image has been decoded.
onLinearGradient(double fromX, double fromY, double toX, double toY, Int32List colors, Float32List? offsets, int tileMode, int id) → void
A linear gradient shader has been parsed.
onMask() → void
Prepare to draw a new mask, until the next onRestoreLayer command.
onPaintObject({required int color, required int? strokeCap, required int? strokeJoin, required int blendMode, required double? strokeMiterLimit, required double? strokeWidth, required int paintStyle, required int id, required int? shaderId}) → void
A paint object has been decoded.
onPathClose() → void
The current path has been closed.
onPathCubicTo(double x1, double y1, double x2, double y2, double x3, double y3) → void
A path object will draw a cubic to (x1, y1), with control point 1 as (x2, y2) and control point 2 as (x3, y3).
onPathFinished() → void
The current path is completed.
onPathLineTo(double x, double y) → void
A path object should line to (x, y).
onPathMoveTo(double x, double y) → void
A path object should move to (x, y).
onPathStart(int id, int fillType) → void
A path object is being created, with the given id and fillType.
onPatternStart(int patternId, double x, double y, double width, double height, Float64List transform) → void
A pattern has been decoded.
onRadialGradient(double centerX, double centerY, double radius, double? focalX, double? focalY, Int32List colors, Float32List? offsets, Float64List? transform, int tileMode, int id) → void
A radial gradient shader has been parsed.
onRestoreLayer() → void
Restore the save stack.
onSaveLayer(int paintId) → void
Save a new layer with the given paintId.
onSize(double width, double height) → void
The size of the vector graphic has been decoded.
onTextConfig(String text, String? fontFamily, double xAnchorMultiplier, int fontWeight, double fontSize, int decoration, int decorationStyle, int decorationColor, int id) → void
A text configuration block has been decoded.
onTextPosition(int textPositionId, double? x, double? y, double? dx, double? dy, bool reset, Float64List? transform) → void
Record a new text position.
onUpdateTextPosition(int textPositionId) → void
An instruction to update the current text position.
toString() String
A string representation of this object.
inherited

Operators

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