Skip to content

Instantly share code, notes, and snippets.

@QuantumGhost
Created March 23, 2022 03:37
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 QuantumGhost/6f642d503bf928cfe541ef422c3f477a to your computer and use it in GitHub Desktop.
Save QuantumGhost/6f642d503bf928cfe541ef422c3f477a to your computer and use it in GitHub Desktop.
// Type your code here, or load an example.
class User {}
bool isUserList(Object value) {
return value is List<User>;
}
int main(List<String> args) {
print(isUserList(<User>[]));
print(isUserList(<bool>[]));
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment