Cursor class

Cursor data class.

Constructors

Cursor({double width = 4.0, double height, Radius radius = _kDefaultRadius, Color color, Duration fadeDuration = _kDefaultFadeDuration, Duration blinkHalfPeriod = _kDefaultBlinkHalfPeriod, Duration blinkWaitForStart = _kDefaultBlinkWaitForStart, bool enabled = false})
Cursor.disabled()

Properties

blinkHalfPeriod Duration
The time it takes for the cursor to fade from fully opaque to fully transparent and vice versa. A full cursor blink, from transparent to opaque to transparent, is twice this duration.
final
blinkWaitForStart Duration
The time the cursor is static in opacity before animating to become transparent.
final
color Color
Color of cursor.
final
enabled bool
Whether to show cursor, if the value is false, would ignore any other property setter.
final
fadeDuration Duration
This value is an eyeball estimation of the time it takes for the iOS cursor to ease in and out.
final
hashCode int
The hash code for this object. [...]
read-only, override
height double
Height of cursor.
final
radius Radius
Radius of cursor, default is [
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
width double
Width of cursor.
final

Methods

copyWith({double width, double height, Radius radius, Color color, Duration fadeDuration, Duration blinkHalfPeriod, Duration blinkWaitForStart, bool enabled}) Cursor
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
override