getVenueById abstract method
Method returns the venue (within the current sublocation)
with the specified identifier or null if no such venue exists.
id venue unique identifier.
Returns found venue object or null Venue.
Example:
// Get venue by ID
if (venues.isNotEmpty) {
Venue? venueById = sublocation.getVenueById(venues.first.getId());
if (venueById != null) {
print('Found venue by ID: ${venueById.getId()}');
demonstrateVenueUsage(venueById);
}
}
Implementation
Venue getVenueById(int id);