dynamicToList<T> static method
Implementation
static List<T> dynamicToList<T>(
dynamic list,
T Function(dynamic e) f,
) {
if (list is List) return List<T>.from(list.map((x) => f(x)));
return [];
}
static List<T> dynamicToList<T>(
dynamic list,
T Function(dynamic e) f,
) {
if (list is List) return List<T>.from(list.map((x) => f(x)));
return [];
}