mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-09 10:23:11 +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();
|
|
}
|
|
}
|