enable lint avoid_classes_with_only_static_members (#12602)
This commit is contained in:
parent
3541ad0a64
commit
436aa93086
@ -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:
|
|||||||
- 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 {
|
|||||||
/// [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>{};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user