FileSystemEvent should be sealed
#51912
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
library-io
P2
A bug or feature request we're likely to work on
triaged
Issue has been triaged by sub team
This will allow developers to exhaustively pattern match on the
Stream
returned byFileSystemEntity.watch
.Unfortunately, none of the
FileSystemEvent
subclasses have public constructors so at least one package,package:watcher
created it's own implementation to work around that.So I think that we can solve this in 3 steps:
FileSystemEvent
subclassesfinal
and provide public constructors.package:watcher
(and possibly others) to use the public constructors instead of custom subclasses.FileSystemEvent
sealedThe text was updated successfully, but these errors were encountered: