Avoid converting stacktrace to nullable and then null checking it. (dart-lang/stack_trace#82)
The Dart implementation will soon be changed so that a declaration
such as `T? x = y`, where `y` has a non-nullable type, automatically
promotes `x` to a non-nullable type. This will in turn cause a
warning if a non-nullable value is assigned to a nullable variable and
then null checked.
We're currently doing that in one place, and there's no need to, so
remove the unnecessary type conversion and null check.
3 files changed
tree: 42d5616809e45a5b0a4670f8ae239522c287245c
- pkgs/