14 lines
257 B
Dart
14 lines
257 B
Dart
|
import 'package:uuid/uuid.dart';
|
||
|
|
||
|
enum StreamElementType { log, alert }
|
||
|
|
||
|
class StreamElement {
|
||
|
StreamElement(this.type, this.message) {
|
||
|
uuid = const Uuid().v4();
|
||
|
}
|
||
|
|
||
|
late final String uuid;
|
||
|
final String message;
|
||
|
final StreamElementType type;
|
||
|
}
|