mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-10-31 22:17:29 +00:00
14 lines
323 B
Dart
14 lines
323 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(final Message message) {
|
|
messages.add(message);
|
|
notifyListeners();
|
|
}
|
|
}
|