removeChildren function

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

Implementation

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