toInteger static method

int toInteger(
  1. dynamic value
)

Converts value into integer or returns 0 when conversion is not possible.

  • value the value to convert. Returns integer value or 0 when conversion is not supported.

See LongConverter.toLong See LongConverter.toLongWithDefault

Implementation

static int toInteger(value) {
  return LongConverter.toLong(value);
}