dart-lang / fake_async

Fake asynchronous events for deterministic testing.
https://pub.dev/packages/fake_async
Apache License 2.0
90 stars 16 forks source link

Make the `creationStackTrace` getter nullable in `FakeTimer` #41

Open natebosch opened 2 years ago

natebosch commented 2 years ago

https://github.com/dart-lang/fake_async/pull/40 will make the getter throw in some cases. This is an OK compromise since a major version bump has a high cost here, and most folks won't run in to this behavior. If we were designing the API without historical constraints, we'd probably make it nullable.