Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class _CaptureRequestOptionsHostApiImpl extends CaptureRequestOptionsHostApi {
// This ignore statement is safe beause this error will be useful when
// a new CaptureRequestKeySupportedType is being added, but the logic in
// this method has not yet been updated.
// ignore: no_default_cases
// ignore: no_default_cases, unreachable_switch_default
default:
throw ArgumentError(CaptureRequestOptions
.getUnsupportedCaptureRequestKeyTypeErrorMessage(key));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class LiveDataFlutterApiImpl implements LiveDataFlutterApi {
// This ignore statement is safe beause this error will be useful when
// a new LiveDataSupportedType is being added, but the logic in this method
// has not yet been updated.
// ignore: no_default_cases
// ignore: no_default_cases, unreachable_switch_default
default:
throw ArgumentError(LiveData.unsupportedLiveDataTypeErrorMessage);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ void main() {
// This ignore statement is safe beause this will test when
// a new CaptureRequestKeySupportedType is being added, but the logic in
// in the CaptureRequestOptions class has not yet been updated.
// ignore: no_default_cases
// ignore: no_default_cases, unreachable_switch_default
default:
fail(
'Option $option contains unrecognized CaptureRequestKeySupportedType key ${option.$1}');
Expand Down