Skip to content

Instantly share code, notes, and snippets.

@dafinoer
Last active July 13, 2022 05:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dafinoer/dfb646fd3b0887e248228c1765435e14 to your computer and use it in GitHub Desktop.
Save dafinoer/dfb646fd3b0887e248228c1765435e14 to your computer and use it in GitHub Desktop.
find name if exist
import 'dart:convert';
void main() {
}
/*
* given static list of string containing people names,
* find if name exists in list
* example
* n = [thor, ironman, loki, odin, hulk]
* x = hulk
*
* */
bool findName(List<String> names) {
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment