groupActiveObjects method
Implementation
FabricGroup? groupActiveObjects() {
if (_activeObjects.length < 2) return null;
final objs = List<FabricObject>.from(_activeObjects);
_pushHistory();
for (final o in objs) {
_objects.remove(o);
_detachWithClosure(o);
}
final group = FabricGroup(objects: objs);
_objects.add(group);
_attachWithClosure(group);
_activeObjects
..clear()
..add(group);
notifyListeners();
return group;
}