diff --git a/lib/src/widgets/cursor.dart b/lib/src/widgets/cursor.dart index dd449c7c..0fe57355 100644 --- a/lib/src/widgets/cursor.dart +++ b/lib/src/widgets/cursor.dart @@ -228,13 +228,13 @@ class CursorCont extends ChangeNotifier { /// Paints the editing cursor. class CursorPainter { - CursorPainter( - this.editable, - this.style, - this.prototype, - this.color, - this.devicePixelRatio, - ); + CursorPainter({ + required this.editable, + required this.style, + required this.prototype, + required this.color, + required this.devicePixelRatio, + }); final RenderContentProxyBox? editable; final CursorStyle style; diff --git a/lib/src/widgets/text_line.dart b/lib/src/widgets/text_line.dart index 14546d11..2291dfc3 100644 --- a/lib/src/widgets/text_line.dart +++ b/lib/src/widgets/text_line.dart @@ -815,11 +815,11 @@ class RenderEditableTextLine extends RenderEditableBox { } CursorPainter get _cursorPainter => CursorPainter( - _body, - cursorCont.style, - _caretPrototype!, - cursorCont.color.value, - devicePixelRatio, + editable: _body, + style: cursorCont.style, + prototype: _caretPrototype!, + color: cursorCont.color.value, + devicePixelRatio: devicePixelRatio, ); @override