1
0
Fork 0
mrtiboute/lib/classes/stream_element.dart
2022-04-14 22:48:15 +02:00

15 lines
312 B
Dart

import 'package:uuid/uuid.dart';
enum StreamElementType { log, alert }
class StreamElement {
StreamElement(this.type, this.message) {
uuid = const Uuid().v4();
date = DateTime.now();
}
late final String uuid;
late final DateTime date;
final String message;
final StreamElementType type;
}