anchor.diff:      expect(ticker.isActive, isTrue);
       expect(tickCount, equals(0));
   
  -    final ByteData? message = const StringCodec().encodeMessage('AppLifecycleState.paused');
  -    await ServicesBinding.instance!.defaultBinaryMessenger.handlePlatformMessage('flutter/lifecycle', message, (_) { });
  +    setAppLifeCycleState(AppLifecycleState.paused);
  +
       expect(ticker.isTicking, isFalse);
       expect(ticker.isActive, isTrue);
   
       ticker.stop();
  +
  +    setAppLifeCycleState(AppLifecycleState.resumed);
     });
   
     testWidgets('Ticker can be created before application unpauses', (WidgetTester tester) async {
  -    final ByteData? pausedMessage = const StringCodec().encodeMessage('AppLifecycleState.paused');
  -    await ServicesBinding.instance!.defaultBinaryMessenger.handlePlatformMessage('flutter/lifecycle', pausedMessage, (_) { });
  +    setAppLifeCycleState(AppLifecycleState.paused);
   
       int tickCount = 0;
       void handleTick(Duration duration) {
  
positive.code:     expect(tickCount, equals(0));
      expect(ticker.isTicking, isFalse);
  
      final ByteData? resumedMessage = const StringCodec().encodeMessage('AppLifecycleState.resumed');
      await ServicesBinding.instance!.defaultBinaryMessenger.handlePlatformMessage('flutter/lifecycle', resumedMessage, (_) { });
  
      await tester.pump(const Duration(milliseconds: 10));
  
  
negative.code: // Copyright 2014 The Flutter Authors. All rights reserved.
  // Use of this source code is governed by a BSD-style license that can be
  // found in the LICENSE file.
  
  import 'package:flutter/foundation.dart';
  import 'package:flutter/scheduler.dart';
  