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