This repository was archived by the owner on Feb 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 3
3
// BSD-style license that can be found in the LICENSE file.
4
4
5
5
import 'dart:async' ;
6
- import 'dart:collection' ;
7
6
import 'dart:math' as math;
8
7
9
8
import 'frame.dart' ;
@@ -146,7 +145,7 @@ class Chain implements StackTrace {
146
145
147
146
/// Returns a new [Chain] comprised of [traces] .
148
147
Chain (Iterable <Trace > traces)
149
- : traces = new UnmodifiableListView <Trace >(traces. toList () );
148
+ : traces = new List <Trace >. unmodifiable (traces );
150
149
151
150
/// Returns a terser version of [this] .
152
151
///
Original file line number Diff line number Diff line change 2
2
// for details. All rights reserved. Use of this source code is governed by a
3
3
// BSD-style license that can be found in the LICENSE file.
4
4
5
- import 'dart:collection' ;
6
5
import 'dart:math' as math;
7
6
8
7
import 'chain.dart' ;
@@ -205,7 +204,7 @@ class Trace implements StackTrace {
205
204
206
205
/// Returns a new [Trace] comprised of [frames] .
207
206
Trace (Iterable <Frame > frames)
208
- : frames = new UnmodifiableListView <Frame >(frames. toList () );
207
+ : frames = new List <Frame >. unmodifiable (frames );
209
208
210
209
/// Returns a VM-style [StackTrace] object.
211
210
///
Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ name: stack_trace
7
7
#
8
8
# When the major version is upgraded, you *must* update that version constraint
9
9
# in pub to stay in sync with this.
10
- version : 1.6.5
10
+ version : 1.6.6-dev
11
11
author :
" Dart Team <[email protected] >"
12
- homepage : http ://github.com/dart-lang/stack_trace
12
+ homepage : https ://github.com/dart-lang/stack_trace
13
13
description : >
14
14
A package for manipulating stack traces and printing them readably.
15
15
You can’t perform that action at this time.
0 commit comments