1
0
Fork 0
mrtiboute/lib/classes/stream_element.dart
2022-04-26 20:29:09 +02:00

15 lines
328 B
Dart

import 'package:uuid/uuid.dart';
enum StreamElementType { log, warning, error, 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;
}