enable lint avoid_classes_with_only_static_members (#12602)

This commit is contained in:
Alexandre Ardhuin 2017-11-09 07:12:36 +01:00 committed by GitHub
parent 3541ad0a64
commit 436aa93086
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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<int, _PointerState> _pointers = <int, _PointerState>{};