ProjectorConfigPatterns extension

Adds pattern-matching-related methods to ProjectorConfig.

on

Methods

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

Available on ProjectorConfig, provided by the ProjectorConfigPatterns extension

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

Available on ProjectorConfig, provided by the ProjectorConfigPatterns extension

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

Available on ProjectorConfig, provided by the ProjectorConfigPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(String id, String name, ProjectorType type, int brightness, int contrast, ProjectorStatus status, double x, double y, double z, double pitch, double yaw, double roll, int resolutionWidth, int resolutionHeight, double refreshRate, Map<String, dynamic>? calibrationData)?, {required TResult orElse()}) → TResult

Available on ProjectorConfig, provided by the ProjectorConfigPatterns extension

A variant of when that fallback to an orElse callback.
when<TResult extends Object?>(TResult $default(String id, String name, ProjectorType type, int brightness, int contrast, ProjectorStatus status, double x, double y, double z, double pitch, double yaw, double roll, int resolutionWidth, int resolutionHeight, double refreshRate, Map<String, dynamic>? calibrationData)) → TResult

Available on ProjectorConfig, provided by the ProjectorConfigPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(String id, String name, ProjectorType type, int brightness, int contrast, ProjectorStatus status, double x, double y, double z, double pitch, double yaw, double roll, int resolutionWidth, int resolutionHeight, double refreshRate, Map<String, dynamic>? calibrationData)?) → TResult?

Available on ProjectorConfig, provided by the ProjectorConfigPatterns extension

A variant of when that fallback to returning null