// Copyright 2020 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'dart:convert';import'dart:ui';import'scenario.dart';/// A scenario that sends back messages when touches are received.classTouchesScenarioextendsScenario{/// Constructor for `TouchesScenario`.TouchesScenario(Windowwindow):super(window);@overridevoidonPointerDataPacket(PointerDataPacketpacket){window.sendPlatformMessage('touches_scenario',utf8.encoder.convert(constJsonCodec().encode(<String,dynamic>{'change':packet.data[0].change.toString(),})).buffer.asByteData(),null,);}}