Last active
March 7, 2023 20:27
-
-
Save aoirint/0dfa37ee10ac870f0ea82defc2a8d393 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tempFileLastLength = 0; | |
final tempFileSystemEventSubscription = tempFile.watch(events: FileSystemEvent.all).listen((event) { | |
tempFile | |
.openRead(tempFileLastLength) | |
.transform(utf8.decoder) | |
.transform(const LineSplitter()) | |
.forEach((lineText) { | |
// TODO: tempFileLastLength += lineTextのデコード前のバイト数 | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment