// Copyright (c) 2019, 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. import 'package:flutter/material.dart'; Future asyncFunction() async { print('a'); await Future.value(); print('b'); } Stream asyncGenerator() async* { print('c'); } void main() { runApp(Container()); asyncFunction(); asyncGenerator().listen((_) {}); WidgetsBinding.instance.addPostFrameCallback((_) => print('d')); Future(() => print('e')); Future(() {}).then((_) => print('f')); Future.sync(() => print('g')); Future.sync(() {}).then((_) => print('h')); Future.value().then((_) => print('i')); Future.microtask(() => print('j')); Future.microtask(() {}).then((_) => print('k')); WidgetsBinding.instance.addPostFrameCallback((_) => print('l')); print('m'); }