diff --git a/CHANGELOG.md b/CHANGELOG.md index 40951feccfc..a8e791d9376 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,17 +10,22 @@ current directory ([#39796][]). [#39796]: https://darbug.com/39796 + #### `dart:io` - **Breaking change** [#51486][]: - Added `sameSite` to the `Cookie` class. - Added class `SameSite`. +- **Breaking change** [#52027][]: `FileSystemEvent` is + [`sealed`](https://dart.dev/language/class-modifiers#sealed). This means + that `FileSystemEvent` cannot be extended or implemented. - Added a deprecation warning when `Platform` is instantiated. - Added `Platform.lineTerminator` which exposes the character or characters that the operating system uses to separate lines of text, e.g., `"\r\n"` on Windows. [#51486]: https://github.com/dart-lang/sdk/issues/51486 +[#52027]: https://github.com/dart-lang/sdk/issues/52027 ### Other libraries diff --git a/sdk/lib/io/file_system_entity.dart b/sdk/lib/io/file_system_entity.dart index 23eba4d313c..77de06dc1fc 100644 --- a/sdk/lib/io/file_system_entity.dart +++ b/sdk/lib/io/file_system_entity.dart @@ -876,7 +876,7 @@ abstract class FileSystemEntity { } /// Base event class emitted by [FileSystemEntity.watch]. -final class FileSystemEvent { +sealed class FileSystemEvent { /// Bitfield for [FileSystemEntity.watch], to enable [FileSystemCreateEvent]s. static const int create = 1 << 0;