1import 'dart:ui' as ui; 2import 'package:flutter/material.dart'; 3 4// named_isolates_test depends on these values. 5const String _kFirstIsolateName = 'first isolate name'; 6const String _kSecondIsolateName = 'second isolate name'; 7 8void first() { 9 _run(_kFirstIsolateName); 10} 11 12void second() { 13 _run(_kSecondIsolateName); 14} 15 16void _run(String name) { 17 ui.window.setIsolateDebugName(name); 18 runApp(Center(child: Text(name, textDirection: TextDirection.ltr))); 19} 20 21// `first` and `second` are the actual entrypoints to this app, but dart specs 22// require a main function. 23void main() { } 24