enable avoid_single_cascade_in_expression_statements (#51944)
This commit is contained in:
committed by
GitHub
parent
3018d8ddb3
commit
c2ae654ddf
@@ -8,7 +8,7 @@ import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('Does flutter_test catch leaking tickers?', (WidgetTester tester) async {
|
||||
Ticker((Duration duration) { })..start();
|
||||
Ticker((Duration duration) { }).start();
|
||||
|
||||
final ByteData message = const StringCodec().encodeMessage('AppLifecycleState.paused');
|
||||
await ServicesBinding.instance.defaultBinaryMessenger.handlePlatformMessage('flutter/lifecycle', message, (_) {});
|
||||
|
||||
@@ -193,8 +193,7 @@ class _PointDemoState extends State<_PointDemo> {
|
||||
ImmediateMultiDragGestureRecognizer: GestureRecognizerFactoryWithHandlers<ImmediateMultiDragGestureRecognizer>(
|
||||
() => ImmediateMultiDragGestureRecognizer(),
|
||||
(ImmediateMultiDragGestureRecognizer instance) {
|
||||
instance
|
||||
..onStart = _handleOnStart;
|
||||
instance.onStart = _handleOnStart;
|
||||
},
|
||||
),
|
||||
},
|
||||
@@ -366,8 +365,7 @@ class _RectangleDemoState extends State<_RectangleDemo> {
|
||||
ImmediateMultiDragGestureRecognizer: GestureRecognizerFactoryWithHandlers<ImmediateMultiDragGestureRecognizer>(
|
||||
() => ImmediateMultiDragGestureRecognizer(),
|
||||
(ImmediateMultiDragGestureRecognizer instance) {
|
||||
instance
|
||||
..onStart = _handleOnStart;
|
||||
instance.onStart = _handleOnStart;
|
||||
},
|
||||
),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user