selfprivacy.org.app/lib/logic/get_it/console.dart

14 lines
317 B
Dart
Raw Normal View History

2021-01-14 21:48:05 +00:00
import 'package:flutter/material.dart';
import 'package:selfprivacy/logic/models/message.dart';
2021-01-19 12:05:40 +00:00
class ConsoleModel extends ChangeNotifier {
2022-05-24 18:55:39 +00:00
final List<Message> _messages = [];
2021-01-14 21:48:05 +00:00
List<Message> get messages => _messages;
void addMessage(Message message) {
messages.add(message);
notifyListeners();
}
}