selfprivacy.org.app/lib/logic/get_it/console.dart
2022-05-24 21:55:39 +03:00

14 lines
317 B
Dart

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