GiftCategory class

Gift category.

Contains gift category ID, name, description, and the gift list under this category.

Properties Overview

Property Type Description
categoryID String Category unique identifier ID
name String Category display name
desc String Category description information
extensionInfo Map<String, String> Category extension information
giftList List<Gift> All gifts under the current category

Constructors

GiftCategory({String categoryID = '', String name = '', String desc = '', Map<String, String> extensionInfo = const {}, List<Gift> giftList = const []})

Properties

categoryID String
Category unique identifier ID, used to distinguish different gift categories.
final
desc String
Category description information, used to explain the characteristics of this category.
final
extensionInfo Map<String, String>
Category extension information, containing custom fields (such as sorting weight, display style, etc.).
final
giftList List<Gift>
All gifts under the current category.
final
hashCode int
The hash code for this object.
no setterinherited
name String
Category display name, used for UI category display (such as "Popular Gifts", "Premium Gifts").
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited