• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5import 'dart:async';
6
7import 'package:fuchsia/fuchsia.dart' as fuchsia;
8
9// ignore: unused_element
10Timer _timer;
11
12void main(List<String> args) {
13  print('Hello, Dart!');
14
15  if (args.isNotEmpty && args.first == '--now') {
16    print('Goodbye now!');
17    fuchsia.exit(23);
18  }
19
20  _timer = Timer(const Duration(seconds: 1), () {
21    print('Goodbye, Dart!');
22    fuchsia.exit(42);
23  });
24}
25