blob: e96766ae4d90d41ebebeca9c5f686b42ee3a6b26 [file] [log] [blame]
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class MethodChannel {
final String name;
const MethodChannel(this.name);
void dump() {
print('MethodChannel($name)');
}
}
final channel1 = MethodChannel("channel1");
final channel2 = MethodChannel("channel2");
const constChannel = MethodChannel("constChannel1");
const constChannel2 = MethodChannel("constChannel2");
main() {
final mcs = [channel1, channel2, constChannel, constChannel2];
for (int i = 0; i < mcs.length; ++i) {
mcs[i].dump();
}
}