// 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/services.dart';import'package:flutter_api_samples/widgets/shortcuts/callback_shortcuts.0.dart'asexample;import'package:flutter_test/flutter_test.dart';voidmain(){testWidgets('CallbackShortcutsApp increments and decrements',(WidgetTestertester)async{awaittester.pumpWidget(constexample.CallbackShortcutsApp(),);expect(find.text('count: 0'),findsOneWidget);// Increment the counter.awaittester.sendKeyEvent(LogicalKeyboardKey.arrowUp);awaittester.pump();expect(find.text('count: 1'),findsOneWidget);// Decrement the counter.awaittester.sendKeyEvent(LogicalKeyboardKey.arrowDown);awaittester.pump();expect(find.text('count: 0'),findsOneWidget);});}