toCents function

int toCents(
  1. double amount
)

Implementation

int toCents(double amount) => (amount * 100).round();