| // Copyright 2013 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:typed_data'; |
| import 'dart:ui'; |
| |
| import 'scenario.dart'; |
| |
| /// Echo platform messages back to the sender. |
| mixin PlatformEchoMixin on Scenario { |
| /// Handle a platform message. |
| @override |
| void onPlatformMessage( |
| String name, |
| ByteData? data, |
| PlatformMessageResponseCallback? callback, |
| ) { |
| view.platformDispatcher.sendPlatformMessage(name, data, null); |
| } |
| } |