BrnFunnelLayerPainter class abstract

漏斗每层绘制接口类,自定义每层绘制继承该类。示例查看BrnDefaultFunnelLayerPainter

Implementers

Constructors

BrnFunnelLayerPainter()

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

getLayerColors(int layerIndex) List<Color>
该层layer的颜色值
isGradient(int layerIndex) bool
该层layer的颜色是否渐变
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paintLayer(Canvas canvas, double left, double top, double right, double bottom, int layerIndex) → void
当需要绘制Layer的时候,会调用该方法。子类在该方法里实现自己的绘制逻辑。 canvas 提供的画布,对画布进行旋转裁剪等特殊操作,一定要调用canvas.save()操作。 left,top,right,bottom是提供给调用者绘制的一个安全区域,超过这个区域限制,可能会被截断 layerIndex 漏斗的layer index。
toString() String
A string representation of this object.
inherited

Operators

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