Loading...
Searching...
No Matches
Category Class Reference

class is used for storing venue categories. More...

Public Member Functions

 Category (this.id, this.name, this.imageUrl)
 Default constructor.
 

Public Attributes

int id
 category identifier.
 
String name
 category name.
 
String imageUrl
 image source. If presented.
 

Detailed Description

class is used for storing venue categories.

Referenced from Location Venue.

Definition at line 17 of file category.dart.

Constructor & Destructor Documentation

◆ Category()

Category.Category ( this. id,
this. name,
this. imageUrl )

Default constructor.

Member Data Documentation

◆ id

int Category.id

category identifier.

Dart code snippet:

// Get category ID
int categoryId = category.getId();
print('Category ID: $categoryId');

Definition at line 29 of file category.dart.

◆ imageUrl

String Category.imageUrl

image source. If presented.

Dart code snippet:

// Get category image URL
String? imageUrl = category.getImageUrl();
if (imageUrl != null) {
print('Category image URL: $imageUrl');
}

Definition at line 49 of file category.dart.

◆ name

String Category.name

category name.

Dart code snippet:

// Get category name
String? categoryName = category.getName();
print('Category name: $categoryName');

Definition at line 39 of file category.dart.


The documentation for this class was generated from the following file: