Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
4461cfba
Unverified
Commit
4461cfba
authored
Jun 10, 2020
by
Nate Bosch
Committed by
GitHub
Jun 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop an unnecessary factory constructor (#58723)
parent
dca6320f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
29 deletions
+15
-29
timeline.dart
packages/flutter_driver/lib/src/driver/timeline.dart
+15
-29
No files found.
packages/flutter_driver/lib/src/driver/timeline.dart
View file @
4461cfba
...
@@ -26,35 +26,21 @@ class Timeline {
...
@@ -26,35 +26,21 @@ class Timeline {
/// A single timeline event.
/// A single timeline event.
class
TimelineEvent
{
class
TimelineEvent
{
/// Creates a timeline event given JSON-encoded event data.
/// Creates a timeline event given JSON-encoded event data.
factory
TimelineEvent
(
Map
<
String
,
dynamic
>
json
)
{
TimelineEvent
(
this
.
json
)
return
TimelineEvent
.
_
(
:
name
=
json
[
'name'
]
as
String
,
json
,
category
=
json
[
'cat'
]
as
String
,
json
[
'name'
]
as
String
,
phase
=
json
[
'ph'
]
as
String
,
json
[
'cat'
]
as
String
,
processId
=
json
[
'pid'
]
as
int
,
json
[
'ph'
]
as
String
,
threadId
=
json
[
'tid'
]
as
int
,
json
[
'pid'
]
as
int
,
duration
=
json
[
'dur'
]
!=
null
json
[
'tid'
]
as
int
,
?
Duration
(
microseconds:
json
[
'dur'
]
as
int
)
json
[
'dur'
]
!=
null
?
Duration
(
microseconds:
json
[
'dur'
]
as
int
)
:
null
,
:
null
,
json
[
'tdur'
]
!=
null
?
Duration
(
microseconds:
json
[
'tdur'
]
as
int
)
:
null
,
threadDuration
=
json
[
'tdur'
]
!=
null
json
[
'ts'
]
as
int
,
?
Duration
(
microseconds:
json
[
'tdur'
]
as
int
)
json
[
'tts'
]
as
int
,
:
null
,
json
[
'args'
]
as
Map
<
String
,
dynamic
>,
timestampMicros
=
json
[
'ts'
]
as
int
,
);
threadTimestampMicros
=
json
[
'tts'
]
as
int
,
}
arguments
=
json
[
'args'
]
as
Map
<
String
,
dynamic
>;
TimelineEvent
.
_
(
this
.
json
,
this
.
name
,
this
.
category
,
this
.
phase
,
this
.
processId
,
this
.
threadId
,
this
.
duration
,
this
.
threadDuration
,
this
.
timestampMicros
,
this
.
threadTimestampMicros
,
this
.
arguments
,
);
/// The original event JSON.
/// The original event JSON.
final
Map
<
String
,
dynamic
>
json
;
final
Map
<
String
,
dynamic
>
json
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment