RegisteredAppPatterns extension

Adds pattern-matching-related methods to RegisteredApp.

on

Methods

map<TResult extends Object?>(TResult $default(_RegisteredApp value)) → TResult

Available on RegisteredApp, provided by the RegisteredAppPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_RegisteredApp value)?) → TResult?

Available on RegisteredApp, provided by the RegisteredAppPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_RegisteredApp value)?, {required TResult orElse()}) → TResult

Available on RegisteredApp, provided by the RegisteredAppPatterns extension

A variant of map that fallback to returning orElse.
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 of when that fallback to an orElse callback.
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

A switch-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 of when that fallback to returning null