Solian/lib/models/reaction.dart

13 lines
325 B
Dart
Raw Normal View History

2024-04-15 15:08:32 +00:00
class ReactInfo {
final String icon;
final int attitude;
ReactInfo({required this.icon, required this.attitude});
}
final Map<String, ReactInfo> reactions = {
'thumb_up': ReactInfo(icon: '👍', attitude: 1),
'thumb_down': ReactInfo(icon: '👎', attitude: -1),
'clap': ReactInfo(icon: '👏', attitude: 1),
};