RegisteredAppPatterns extension
Adds pattern-matching-related methods to RegisteredApp.
Methods
-
map<
TResult extends Object?> (TResult $default(_RegisteredApp value)) → TResult -
Available on RegisteredApp, provided by the RegisteredAppPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_RegisteredApp value)?) → TResult? -
Available on RegisteredApp, provided by the RegisteredAppPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_RegisteredApp value)?, {required TResult orElse()}) → TResult -
Available on RegisteredApp, provided by the RegisteredAppPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String id, String name, AppTechnology technology, AppLegal? legalInformation, AppDesign? designInformation, String nickname, bool? isCustomized, List< AppInstance> ? instances, List<Asset> ? importedAssets, List<Device> ? importedDevices, List<User> ? importedUsers, List<User> ? keychain, String sourceId, User? owner, List<CustomReport> ? allowedReports, String? fixedWorkspaceId, Workspace? fixedWorkspace, List<MapLayer> authorizedLayers)?, {required TResult orElse()}) → TResult -
Available on RegisteredApp, provided by the RegisteredAppPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
when<
TResult extends Object?> (TResult $default(String id, String name, AppTechnology technology, AppLegal? legalInformation, AppDesign? designInformation, String nickname, bool? isCustomized, List< AppInstance> ? instances, List<Asset> ? importedAssets, List<Device> ? importedDevices, List<User> ? importedUsers, List<User> ? keychain, String sourceId, User? owner, List<CustomReport> ? allowedReports, String? fixedWorkspaceId, Workspace? fixedWorkspace, List<MapLayer> authorizedLayers)) → TResult -
Available on RegisteredApp, provided by the RegisteredAppPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String id, String name, AppTechnology technology, AppLegal? legalInformation, AppDesign? designInformation, String nickname, bool? isCustomized, List< AppInstance> ? instances, List<Asset> ? importedAssets, List<Device> ? importedDevices, List<User> ? importedUsers, List<User> ? keychain, String sourceId, User? owner, List<CustomReport> ? allowedReports, String? fixedWorkspaceId, Workspace? fixedWorkspace, List<MapLayer> authorizedLayers)?) → TResult? -
Available on RegisteredApp, provided by the RegisteredAppPatterns extension
A variant ofwhenthat fallback to returningnull