getContentById method

CustomerPlaceContent? getContentById(
  1. String uuid, {
  2. bool searchInFlattened = false,
})

Implementation

CustomerPlaceContent? getContentById(String uuid, {bool searchInFlattened = false}) {
  if (searchInFlattened) {
    return flattenedTourChildren.firstWhereOrNull((content) => (content.uuid == uuid));
  } else {
    return tourContents.firstWhereOrNull((content) => (content.uuid == uuid));
  }
}