hasLengthProperty function

bool hasLengthProperty(
  1. dynamic value
)

Check if a value has a length property.

Implementation

bool hasLengthProperty(dynamic value) {
  return value is String || value is Iterable || value is Map || value is Set;
}