Prefer initializing formals

pull/145/head
Till Friebe 4 years ago
parent 78594aa266
commit 32b6c9169a
  1. 1
      analysis_options.yaml
  2. 5
      lib/widgets/cursor.dart

@ -24,6 +24,7 @@ linter:
- prefer_final_fields
- prefer_final_in_for_each
- prefer_final_locals
- prefer_initializing_formals
- prefer_relative_imports
- prefer_single_quotes
- unnecessary_parenthesis

@ -64,11 +64,10 @@ class CursorCont extends ChangeNotifier {
CursorStyle _style;
CursorCont({
required ValueNotifier<bool> show,
required this.show,
required CursorStyle style,
required TickerProvider tickerProvider,
}) : show = show,
_style = style,
}) : _style = style,
_blink = ValueNotifier(false),
color = ValueNotifier(style.color) {
_blinkOpacityCont =

Loading…
Cancel
Save