Skip to content

Instantly share code, notes, and snippets.

@rodydavis
Created March 6, 2024 23:49
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 rodydavis/787407b493047a5905da72510d17dc6d to your computer and use it in GitHub Desktop.
Save rodydavis/787407b493047a5905da72510d17dc6d to your computer and use it in GitHub Desktop.
How to Print Multiple Objects to the Console with print()
void main() {
final number = 1;
final str = 'Hello World';
print((number, str));
print((DateTime.now(), str));
print((DateTime.now(), count: number, description: str));
print((DateTime.now(), StackTrace.current));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment