blob: fcc5a59b3958e6a8c2696c8aa3f1fa28308d1193 [file] [log] [blame]
// Copyright 2021 The Fuchsia 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:fidl_fidl_test_tablememberremove/fidl_async.dart' as fidllib;
// [START contents]
void useTable(fidllib.Profile profile) {
if (profile.timezone != null) {
print('timezone: ${profile.timezone}');
}
if (profile.temperatureUnit != null) {
print('preferred unit: ${profile.temperatureUnit}');
}
profile.$unknownData?.forEach((ordinal, data) {
print('unknown ordinal $ordinal with bytes ${data.data}');
});
}
// [END contents]