void main() {
Future speakFunction() async {
Future.delayed(Duration(seconds: 5));
try {
print('João: Bom dia, grupo!');
await Future.delayed(Duration(seconds: 2));
print('Mariana: Bom dia! Tudo bem?');
await Future.delayed(Duration(seconds: 2));
print(' João: Suave, e vc?');
await Future.delayed(Duration(seconds: 2));
print('Mariana: Certinho.');
await Future.delayed(Duration(seconds: 2));
} catch (e) {
print('An error Occurred speakFunction $e');
} finally {
print('the conversation ended');
}
}
}