package static method
Implementation
static Future<void> package() async {
final projectPath = DirectoryService.getValidProjectPath('lib');
final packageName = InputService.getValidatedInput(
consoleMessage: Constants.kEnterPackageName,
errorMessage: Constants.kInvalidValue,
functionValidator: Validator.isValidSingleString
).snakeCase();
await ScriptService.addPackages(packages: [packageName], projectPath: projectPath);
await ScriptService.flutterPubGet(projectPath);
Console.writeLine(green('✅ Done!'));
}