Cursor class

Cursor data class.

Constructors

Cursor({double? width, double? height, Radius radius = _kDefaultRadius, required Color color, Duration fadeDuration = _kDefaultFadeDuration, Duration blinkHalfPeriod = _kDefaultBlinkHalfPeriod, Duration blinkWaitForStart = _kDefaultBlinkWaitForStart, Orientation orientation = Orientation.vertical, double offset = 0.0, bool enabled = false})
const
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.
no setteroverride
height double?
Height of cursor.
final
offset double
The offset from center
final
orientation Orientation
The orientation of cursor
final
radius Radius
Radius of cursor, default is [
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width double?
Width of cursor.
final

Methods

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

Operators

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