blob: cd4da1cd8e6eaab985ca26f94d02c9e3ba17490b [file] [log] [blame]
// 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 'channel_util.dart';
import 'scenario.dart';
/// A blank page that just sends back to the platform what the set initial
/// route is.
class InitialRouteReply extends Scenario {
/// Creates the InitialRouteReply.
InitialRouteReply(super.view);
@override
void onBeginFrame(Duration duration) {
sendJsonMethodCall(
dispatcher: view.platformDispatcher,
channel: 'initial_route_test_channel',
method: view.platformDispatcher.defaultRouteName,
);
}
}