ProjectorResultPatterns extension
Adds pattern-matching-related methods to ProjectorResult.
Methods
-
map<
TResult extends Object?> (TResult $default(_ProjectorResult value)) → TResult -
Available on ProjectorResult, provided by the ProjectorResultPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_ProjectorResult value)?) → TResult? -
Available on ProjectorResult, provided by the ProjectorResultPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_ProjectorResult value)?, {required TResult orElse()}) → TResult -
Available on ProjectorResult, provided by the ProjectorResultPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String projectorId, String projectorName, List< CalibrationPoint> calibrationPoints, double brightness, double contrast, double gamma, List<double> colorMatrix, double geometryAccuracy, double quality, Map<String, dynamic> ? lensCorrection)?, {required TResult orElse()}) → TResult -
Available on ProjectorResult, provided by the ProjectorResultPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
when<
TResult extends Object?> (TResult $default(String projectorId, String projectorName, List< CalibrationPoint> calibrationPoints, double brightness, double contrast, double gamma, List<double> colorMatrix, double geometryAccuracy, double quality, Map<String, dynamic> ? lensCorrection)) → TResult -
Available on ProjectorResult, provided by the ProjectorResultPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String projectorId, String projectorName, List< CalibrationPoint> calibrationPoints, double brightness, double contrast, double gamma, List<double> colorMatrix, double geometryAccuracy, double quality, Map<String, dynamic> ? lensCorrection)?) → TResult? -
Available on ProjectorResult, provided by the ProjectorResultPatterns extension
A variant ofwhenthat fallback to returningnull