bool supports(obj)

Source

bool supports(dynamic obj) => obj is String || obj is List;