convertDouble method

int convertDouble(
  1. double amount
)

Implementation

int convertDouble(double amount) => (amount * 100).toInt();