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();
Best JSON Validator, JSON Tree Viewer, JSON Beautifier at same place.

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

double to int Flutter
Was this helpful?
0 Comments