MainTick class

Inheritance

Constructors

MainTick({MinorTick? minorTick, 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
坐标轴刻度是否朝内
finalinherited
interval int
坐标轴刻度的显示间隔,只在类目轴中有效 -1为默认 0 强制显示所有标签 1 『隔一个标签显示一个标签』 2 隔两个标签显示一个标签,以此类推
finalinherited
labelPadding num
文字和刻度之间的间距
finalinherited
labelStyle LabelStyle
刻度文字样式
finalinherited
length num
刻度长度
finalinherited
lineStyle LineStyle
刻度样式
finalinherited
minorTick MinorTick?
final
mode Alignment
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
show bool
finalinherited
tickOffset num
Tick 和轴线之间的偏移
finalinherited

Methods

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