selfprivacy.org.app/lib/logic/get_it/console.dart
2021-01-19 13:05:40 +01:00

14 lines
311 B
Dart

import 'package:flutter/material.dart';
import 'package:selfprivacy/logic/models/message.dart';
class ConsoleModel extends ChangeNotifier {
List<Message> _messages = [];
List<Message> get messages => _messages;
void addMessage(Message message) {
messages.add(message);
notifyListeners();
}
}