CaseItem<T extends SchemaItem> class
final
A case item that pairs a condition value with its corresponding content.
Used within Conditional to define what content should be shown for each condition value.
Example:
final case = CaseItem(
value: 'mobile',
item: Card(title: 'Mobile View'),
);
- Annotations
-
- @JsonSerializable()
Constructors
- CaseItem.new({String? value, ContentItem? item})
-
CaseItem.fromJson(Map<
String, dynamic> json) -
factory
Properties
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