homogeneous method

bool homogeneous(
  1. List values
)

Implementation

bool homogeneous(List<dynamic> values) {
  var firstType = values[0].runtimeType;
  for (int i = 0; i < values.length; i++) {
    if (values[i].runtimeType != firstType) {
      return false;
    }
  }
  return true;
}