This repository was archived by the owner on Apr 29, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public interface TickerProvider {
16
16
public class Ticker {
17
17
public Ticker ( TickerCallback onTick , string debugLabel = null ) {
18
18
D . assert ( ( ) => {
19
- this . _debugCreationStack = new StackTrace ( ) ;
19
+ this . _debugCreationStack = new Exception ( ) . StackTrace ;
20
20
return true ;
21
21
} ) ;
22
22
this . _onTick = onTick ;
@@ -195,7 +195,7 @@ public virtual void dispose() {
195
195
196
196
public readonly string debugLabel ;
197
197
198
- StackTrace _debugCreationStack ;
198
+ string _debugCreationStack ;
199
199
200
200
public override string ToString ( ) {
201
201
return this . toString ( debugIncludeStack : false ) ;
@@ -213,7 +213,7 @@ public string toString(bool debugIncludeStack = false) {
213
213
if ( debugIncludeStack ) {
214
214
buffer . AppendLine ( ) ;
215
215
buffer . AppendLine ( "The stack trace when the " + this . GetType ( ) + " was actually created was:" ) ;
216
- UIWidgetsError . defaultStackFilter ( this . _debugCreationStack . ToString ( ) . TrimEnd ( ) . Split ( '\n ' ) )
216
+ UIWidgetsError . defaultStackFilter ( this . _debugCreationStack . TrimEnd ( ) . Split ( '\n ' ) )
217
217
. Each ( line => buffer . AppendLine ( line ) ) ;
218
218
}
219
219
You can’t perform that action at this time.
0 commit comments