ScaleIntervalStyle class
Defines the visual style for an interval on the ruler.
The ScaleIntervalStyle class allows you to customize the appearance of an interval on the ruler. It includes properties like the interval's scale, color, width, and height, enabling flexible customization of how each unit interval is displayed. This class can be used to modify the look of different measurement intervals, making them distinct and visually appealing.
The scale can be used to adjust the relative size of the interval, while the color, width, and height properties control the visual style of the interval.
Constructors
- ScaleIntervalStyle({int scale = -1, required Color color, required double width, required double height})
-
Creates a ScaleIntervalStyle with the specified
color
,width
, andheight
. Optionally, you can provide ascale
to adjust the interval's visual representation.const
Properties
- color → Color
-
The color used to render the interval on the ruler.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
The height of the interval, which typically determines how tall the interval is rendered.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale → int
-
The scale factor for the interval, used to adjust its visual representation.
The default value is -1, meaning no scale is applied by default.
final
- width → double
-
The width of the interval on the ruler, defining how much space the interval occupies.
final
Methods
-
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