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

14 lines
311 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 {
2021-01-14 21:48:05 +00:00
List<Message> _messages = [];
List<Message> get messages => _messages;
void addMessage(Message message) {
messages.add(message);
notifyListeners();
}
}