Conditionally render children based on a condition
Row renderConditionally(bool condition) { return Row(children: children.where((child) => condition).toList()); }