getUnitAsMilliseconds function

int getUnitAsMilliseconds(
  1. Object? unit, [
  2. int amount = 1
])

Implementation

int getUnitAsMilliseconds(Object? unit, [int amount = 1]) {
  var ms = _getUnitMilliseconds(unit)!;
  return ms * amount;
}