Unverified Commit 436aa930 authored by Alexandre Ardhuin's avatar Alexandre Ardhuin Committed by GitHub

enable lint avoid_classes_with_only_static_members (#12602)

parent 3541ad0a
...@@ -79,7 +79,7 @@ linter: ...@@ -79,7 +79,7 @@ linter:
- avoid_as - avoid_as
# - avoid_catches_without_on_clauses # we do this commonly # - avoid_catches_without_on_clauses # we do this commonly
# - avoid_catching_errors # 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_function_literals_in_foreach_calls
- avoid_init_to_null - avoid_init_to_null
- avoid_null_checks_in_equality_operators - avoid_null_checks_in_equality_operators
......
...@@ -73,7 +73,7 @@ linter: ...@@ -73,7 +73,7 @@ linter:
- avoid_as - avoid_as
# - avoid_catches_without_on_clauses # we do this commonly # - avoid_catches_without_on_clauses # we do this commonly
# - avoid_catching_errors # 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_function_literals_in_foreach_calls
- avoid_init_to_null - avoid_init_to_null
- avoid_null_checks_in_equality_operators - avoid_null_checks_in_equality_operators
......
...@@ -37,6 +37,8 @@ class _PointerState { ...@@ -37,6 +37,8 @@ class _PointerState {
/// [dart:ui.Window.onPointerDataPacket], and converts them to [PointerEvent] /// [dart:ui.Window.onPointerDataPacket], and converts them to [PointerEvent]
/// objects. /// objects.
class PointerEventConverter { class PointerEventConverter {
PointerEventConverter._();
// Map from platform pointer identifiers to PointerEvent pointer identifiers. // Map from platform pointer identifiers to PointerEvent pointer identifiers.
static final Map<int, _PointerState> _pointers = <int, _PointerState>{}; static final Map<int, _PointerState> _pointers = <int, _PointerState>{};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment