removeChildren function

Future<void> removeChildren(
  1. WidgetModel model,
  2. List arguments
)

Implementation

Future<void> removeChildren(WidgetModel model, List<dynamic> arguments) async {
  // dispose of all children
  model.children?.forEach((child) => child.dispose());
  model.children?.clear();
}