hasLength static method

bool hasLength(
  1. dynamic value
)

value 是否有长度属性

Implementation

static bool hasLength(dynamic value) {
  return value is Iterable || value is String || value is Map;
}