ProjectorConfigPatterns extension
Adds pattern-matching-related methods to ProjectorConfig.
Methods
-
map<
TResult extends Object?> (TResult $default(_ProjectorConfig value)) → TResult -
Available on ProjectorConfig, provided by the ProjectorConfigPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_ProjectorConfig value)?) → TResult? -
Available on ProjectorConfig, provided by the ProjectorConfigPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_ProjectorConfig value)?, {required TResult orElse()}) → TResult -
Available on ProjectorConfig, provided by the ProjectorConfigPatterns extension
A variant ofmapthat fallback to returningorElse. -
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 ofwhenthat fallback to anorElsecallback. -
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
Aswitch-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 ofwhenthat fallback to returningnull