flatten function

  1. @visibleForTesting
List<NodeViewModelState> flatten(
  1. dynamic object
)

Implementation

@visibleForTesting
List<NodeViewModelState> flatten(dynamic object) {
  if (object is List) {
    return _flattenArray(object as List<NodeViewModelState>);
  }
  return _flattenClass(object as Map<String, NodeViewModelState>);
}