readMsixIdentityFromEnv function
Implementation
MsixIdentity readMsixIdentityFromEnv([Map<String, String>? environment]) {
final env = environment ?? currentShipworldEnvironment;
final displayName = env['MSIX_DISPLAY_NAME'];
return MsixIdentity(
identityName: _readRequiredEnv(env, 'MSIX_IDENTITY_NAME'),
publisher: _readRequiredEnv(env, 'MSIX_PUBLISHER'),
publisherDisplayName: _readRequiredEnv(env, 'MSIX_PUBLISHER_DISPLAY_NAME'),
displayName: displayName != null && displayName.trim().isNotEmpty
? displayName
: null,
);
}