fromDynamicList static method

List<JsonWidgetData> fromDynamicList(
  1. dynamic list, {
  2. JsonWidgetRegistry? registry,
})
override

Helper function to create a list of dynamic objects given a builder that can build a single object.

Implementation

static List<JsonWidgetData> fromDynamicList(
  dynamic list, {
  JsonWidgetRegistry? registry,
}) {
  final result = maybeFromDynamicList(list, registry: registry);
  if (result == null) {
    throw Exception(
      '[JsonWidgetData]: requested to parse from dynamic list, but the input is null.',
    );
  }

  return result;
}