Skip to content

Instantly share code, notes, and snippets.

@Drawinakash0209
Drawinakash0209 / dart_basics_complete.dart
Created November 1, 2025 06:56
Dart Basics: Data Types & Collections - Complete Example with Outputs
void main() {
print("=== DART BASICS: DATA TYPES & COLLECTIONS ===\n");
// ========================================
// ## Numbers (num, int, double)
// ========================================
// Numbers are used for mathematical calculations
// int: Whole numbers (no decimal point)
// double: Floating-point numbers (with decimal point)
@Drawinakash0209
Drawinakash0209 / dart_basics_complete.dart
Created November 1, 2025 06:54
Dart Basics: Data Types & Collections - Complete Example with Outputs
void main() {
print("=== DART BASICS: DATA TYPES & COLLECTIONS ===\n");
// ========================================
// ## Numbers (num, int, double)
// ========================================
// Numbers are used for mathematical calculations
// int: Whole numbers (no decimal point)
// double: Floating-point numbers (with decimal point)