From 436aa930860c3f16df269cea34c6aa71ca674a6d Mon Sep 17 00:00:00 2001 From: Alexandre Ardhuin Date: Thu, 9 Nov 2017 07:12:36 +0100 Subject: [PATCH] enable lint avoid_classes_with_only_static_members (#12602) --- analysis_options.yaml | 2 +- analysis_options_repo.yaml | 2 +- packages/flutter/lib/src/gestures/converter.dart | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/analysis_options.yaml b/analysis_options.yaml index 74c22f49de..f2c2f254af 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -79,7 +79,7 @@ linter: - avoid_as # - avoid_catches_without_on_clauses # we do this commonly # - avoid_catching_errors # we do this commonly - # - avoid_classes_with_only_static_members # not yet tested + - avoid_classes_with_only_static_members - avoid_function_literals_in_foreach_calls - avoid_init_to_null - avoid_null_checks_in_equality_operators diff --git a/analysis_options_repo.yaml b/analysis_options_repo.yaml index 571e3c224b..538e992e00 100644 --- a/analysis_options_repo.yaml +++ b/analysis_options_repo.yaml @@ -73,7 +73,7 @@ linter: - avoid_as # - avoid_catches_without_on_clauses # we do this commonly # - avoid_catching_errors # we do this commonly - # - avoid_classes_with_only_static_members # not yet tested + - avoid_classes_with_only_static_members - avoid_function_literals_in_foreach_calls - avoid_init_to_null - avoid_null_checks_in_equality_operators diff --git a/packages/flutter/lib/src/gestures/converter.dart b/packages/flutter/lib/src/gestures/converter.dart index a5ea47d72d..2a98032f83 100644 --- a/packages/flutter/lib/src/gestures/converter.dart +++ b/packages/flutter/lib/src/gestures/converter.dart @@ -37,6 +37,8 @@ class _PointerState { /// [dart:ui.Window.onPointerDataPacket], and converts them to [PointerEvent] /// objects. class PointerEventConverter { + PointerEventConverter._(); + // Map from platform pointer identifiers to PointerEvent pointer identifiers. static final Map _pointers = {};