Ghi chú / Chú thích (Comment) trong Dart
1. Single-line Comment
// This is a single-line comment
var name = "Dart"; // Comment at end2. Multi-line Comment
/*
This is a
multi-line comment
*/3. Documentation Comments
/// Calculates sum of two numbers
int sum(int a, int b) {
return a + b;
}
/**
* Calculates sum
* @param a First number
* @param b Second number
*/📝 Tóm tắt
//- Single-line/* */- Multi-line///- Documentation
Last updated on