round static method

int? round(
  1. String string
)

Round off double to int if double is string

Implementation

static int? round(String string) => string.isNotEmptyOrNull && string.isNumber
    ? string.toDouble.round()
    : null;