Add steam message
This commit is contained in:
parent
1351130f83
commit
f2d808f5d3
8 changed files with 226 additions and 68 deletions
13
lib/classes/stream_element.dart
Normal file
13
lib/classes/stream_element.dart
Normal file
|
@ -0,0 +1,13 @@
|
|||
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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue