isLength function

bool isLength(
  1. dynamic value
)

Implementation

bool isLength(value) {
  return value.runtimeType == int && value > -1 && value % 1 == 0;
}