Skip to content

Instantly share code, notes, and snippets.

@CoderNamedHendrick
Created November 27, 2022 10:54
Show Gist options
  • Save CoderNamedHendrick/6c4948fdf144038085cc2ca7156a30b3 to your computer and use it in GitHub Desktop.
Save CoderNamedHendrick/6c4948fdf144038085cc2ca7156a30b3 to your computer and use it in GitHub Desktop.
String checks extension.
extension StringCheckers on String? {
bool get isBlank {
final value = this?.trim();
if (value == null || value.isEmpty){
return true;
}
return false;
}
bool get isNotBlank {
return !isBlank;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment