mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-18 14:49:15 +00:00
14 lines
311 B
Dart
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();
|
|
}
|
|
}
|