CursorModel constructor
CursorModel({
- Duration blinkSpeed = const Duration(milliseconds: 530),
- CursorMode mode = CursorMode.blink,
- String char = ' ',
- Style? style,
- Style? textStyle,
Creates a new cursor model.
Implementation
CursorModel({
this.blinkSpeed = const Duration(milliseconds: 530),
this._mode = CursorMode.blink,
this._char = ' ',
Style? style,
Style? textStyle,
}) : _id = _nextCursorId(),
_blink = true,
_focus = false,
_blinkTag = 0,
style = style ?? Style(),
textStyle = textStyle ?? Style();