Question - What Is The Use Of Truncate Methods?
Answer -
Truncate method is used to return an integer after discarding any fractions digits.
Example:
void main() {
double n1 = 2.123;
var value = n1.truncate();
print("The truncated value of 2.123 = ");
}