collectionIf function

List<String> collectionIf (bool active)

Implementation

List<String> collectionIf(bool active) {
  return ['Home', 'Furniture', 'Plants', if (active) 'Outlet'];
}