diff --git a/packages/build_menu_flutter/lib/src/app_build_menu.dart b/packages/build_menu_flutter/lib/src/app_build_menu.dart index 69ce972..a74c7b7 100644 --- a/packages/build_menu_flutter/lib/src/app_build_menu.dart +++ b/packages/build_menu_flutter/lib/src/app_build_menu.dart @@ -133,7 +133,7 @@ void menuFlutterAppContent( if (!supported) { write('flutter not supported'); var response = await prompt('Continue Y/N'); - if (response?.toLowerCase() == 'y') { + if (response.toLowerCase() == 'y') { return true; } } @@ -270,8 +270,8 @@ void menuFlutterAppContent( }); item('prompt', () async { var command = await prompt('Enter command'); - if (command?.isNotEmpty ?? false) { - await appShell.run(command!); + if (command.isNotEmpty) { + await appShell.run(command); } }); }