-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
closed-as-intendedClosed as the reported issue is expected behaviorClosed as the reported issue is expected behavior
Description
Snippet
extension NotEmptyOrThrowTExtension<String> on String? {
String notEmptyOrThrow(Object exception) {
final self = this;
if (self == null) {
throw exception;
}
if (self.isEmpty) {
return self;
}
return self;
}
}
Actual behavior
Expected behavior
isEmpty is recognized.
Version
Dart SDK version: 3.5.4 (stable) (Wed Oct 16 16:18:51 2024 +0000) on "macos_arm64"
Metadata
Metadata
Assignees
Labels
closed-as-intendedClosed as the reported issue is expected behaviorClosed as the reported issue is expected behavior