InsightCard class

A single insight card.

Constructors

InsightCard({String? id, required InsightCardType type, required String title, required String body, String? icon, int? priority, List<String>? tags, String? actionText, String? actionId})
const
InsightCard.fromMap(Map<String, dynamic> map)
factory

Properties

actionId → String?
Optional deep link or action identifier.
final
actionText → String?
Optional call-to-action text.
final
body → String
The body content of the insight.
final
hasAction → bool
Whether this card has an associated action.
no setter
hashCode → int
The hash code for this object.
no setterinherited
icon → String?
Optional icon or emoji identifier.
final
id → String?
Unique identifier for this card.
final
priority → int?
Optional priority or importance level (1-5, higher is more important).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tags → List<String>?
Optional tags or categories.
final
title → String
The main headline or title.
final
type → InsightCardType
The type of insight.
final

Methods

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

Operators

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