conversion of double value to int in fl;utter code example
Example: double to int in dart
int calc_ranks(ranks) {
double multiplier = .5;
return (multiplier * ranks).round();
}
int calc_ranks(ranks) {
double multiplier = .5;
return (multiplier * ranks).round();
}