Search code snippets, questions, articles...

Convert a double to an int in Dart or Flutter

to convert a double value to int value you can use .toInt() method.
double _data = 2.0;
_data = _data.toInt();

Search Index Data (The code snippet can also be found with below search text)

double to int Flutter
Was this helpful?
0 Comments
Programming Feeds
Learn something new everyday on Devsheet