setAppName method
Changes the name of the application to the provided appName
.
Parameters:
appName
: The new name to be set for the application. Returns: Future<String?>, a success message indicating the change in application name.
Implementation
Future<String?> setAppName({required String appName}) async {
var old = await getAppName();
return 'rename has successfuly changed appname for ${platform.name.toUpperCase()}\n$old -> $appName';
}