BaseTick class abstract

Implementers

Constructors

BaseTick({bool show = true, bool inside = true, num length = 3, LineStyle lineStyle = const LineStyle(), LabelStyle labelStyle = const LabelStyle(), num labelPadding = 3, int interval = -1, num tickOffset = 0})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
inside bool
坐标轴刻度是否朝内
final
interval int
坐标轴刻度的显示间隔,只在类目轴中有效 -1为默认 0 强制显示所有标签 1 『隔一个标签显示一个标签』 2 隔两个标签显示一个标签,以此类推
final
labelPadding num
文字和刻度之间的间距
final
labelStyle LabelStyle
刻度文字样式
final
length num
刻度长度
final
lineStyle LineStyle
刻度样式
final
mode Alignment
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
show bool
final
tickOffset num
Tick 和轴线之间的偏移
final

Methods

drawCircleTick(Canvas canvas, Paint paint, double radius, num startAngle, num sweepAngle, List<String> ticks, {Offset center = Offset.zero, bool category = false}) → void
drawLineTick(Canvas canvas, Paint paint, Offset start, Offset end, List<String> ticks) → void
绘制直线上的Tick(直线可能是斜线) 如果ticks 只有一个则居中 大于等于2则在首尾均匀分布
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