attach method
Implementation
Future<void> attach() async {
return runZonedGuarded(
() async {
await _attach();
},
(error, stack) {
// ignore: avoid_print
print('Failed to create server (uncaught)\n$error\n$stack');
},
);
}