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
5de96bb7
Unverified
Commit
5de96bb7
authored
Oct 02, 2018
by
Alexandre Ardhuin
Committed by
GitHub
Oct 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unnecessary this in field initializers (#22522)
parent
4bd6ad73
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
38 additions
and
38 deletions
+38
-38
framework.dart
dev/devicelab/lib/framework/framework.dart
+5
-5
vitool.dart
dev/tools/vitool/lib/vitool.dart
+1
-1
date_picker.dart
packages/flutter/lib/src/cupertino/date_picker.dart
+1
-1
button.dart
packages/flutter/lib/src/material/button.dart
+1
-1
expansion_panel.dart
packages/flutter/lib/src/material/expansion_panel.dart
+1
-1
bottom_navigation_bar_item.dart
...s/flutter/lib/src/widgets/bottom_navigation_bar_item.dart
+1
-1
navigator.dart
packages/flutter/lib/src/widgets/navigator.dart
+1
-1
find.dart
packages/flutter_driver/lib/src/common/find.dart
+2
-2
frame_sync.dart
packages/flutter_driver/lib/src/common/frame_sync.dart
+1
-1
gesture.dart
packages/flutter_driver/lib/src/common/gesture.dart
+5
-5
message.dart
packages/flutter_driver/lib/src/common/message.dart
+1
-1
request_data.dart
packages/flutter_driver/lib/src/common/request_data.dart
+1
-1
semantics.dart
packages/flutter_driver/lib/src/common/semantics.dart
+1
-1
timeline_summary.dart
packages/flutter_driver/lib/src/driver/timeline_summary.dart
+1
-1
material_localizations.dart
...flutter_localizations/lib/src/material_localizations.dart
+7
-7
android_studio.dart
packages/flutter_tools/lib/src/android/android_studio.dart
+1
-1
resident_runner.dart
packages/flutter_tools/lib/src/resident_runner.dart
+1
-1
event_printer.dart
packages/flutter_tools/lib/src/test/event_printer.dart
+1
-1
vscode.dart
packages/flutter_tools/lib/src/vscode/vscode.dart
+2
-2
test_driver.dart
packages/flutter_tools/test/integration/test_driver.dart
+1
-1
logging.dart
...fuchsia_remote_debug_protocol/lib/src/common/logging.dart
+2
-2
No files found.
dev/devicelab/lib/framework/framework.dart
View file @
5de96bb7
...
...
@@ -148,8 +148,8 @@ class _TaskRunner {
class
TaskResult
{
/// Constructs a successful result.
TaskResult
.
success
(
this
.
data
,
{
this
.
benchmarkScoreKeys
=
const
<
String
>[]})
:
this
.
succeeded
=
true
,
this
.
message
=
'success'
{
:
succeeded
=
true
,
message
=
'success'
{
const
JsonEncoder
prettyJson
=
JsonEncoder
.
withIndent
(
' '
);
if
(
benchmarkScoreKeys
!=
null
)
{
for
(
String
key
in
benchmarkScoreKeys
)
{
...
...
@@ -173,9 +173,9 @@ class TaskResult {
/// Constructs an unsuccessful result.
TaskResult
.
failure
(
this
.
message
)
:
this
.
succeeded
=
false
,
this
.
data
=
null
,
this
.
benchmarkScoreKeys
=
const
<
String
>[];
:
succeeded
=
false
,
data
=
null
,
benchmarkScoreKeys
=
const
<
String
>[];
/// Whether the task succeeded.
final
bool
succeeded
;
...
...
dev/tools/vitool/lib/vitool.dart
View file @
5de96bb7
...
...
@@ -446,7 +446,7 @@ class _Transform {
/// Constructs a new _Transform, default arguments create a no-op transform.
_Transform
({
Matrix3
transformMatrix
,
this
.
opacity
=
1.0
})
:
t
his
.
t
ransformMatrix
=
transformMatrix
??
Matrix3
.
identity
();
transformMatrix
=
transformMatrix
??
Matrix3
.
identity
();
final
Matrix3
transformMatrix
;
final
double
opacity
;
...
...
packages/flutter/lib/src/cupertino/date_picker.dart
View file @
5de96bb7
...
...
@@ -172,7 +172,7 @@ class CupertinoDatePicker extends StatefulWidget {
this
.
maximumYear
,
this
.
minuteInterval
=
1
,
this
.
use24hFormat
=
false
,
})
:
this
.
initialDateTime
=
initialDateTime
??
DateTime
.
now
(),
})
:
initialDateTime
=
initialDateTime
??
DateTime
.
now
(),
assert
(
mode
!=
null
),
assert
(
onDateTimeChanged
!=
null
),
assert
(
initialDateTime
!=
null
),
...
...
packages/flutter/lib/src/material/button.dart
View file @
5de96bb7
...
...
@@ -49,7 +49,7 @@ class RawMaterialButton extends StatefulWidget {
this
.
clipBehavior
=
Clip
.
none
,
MaterialTapTargetSize
materialTapTargetSize
,
this
.
child
,
})
:
this
.
materialTapTargetSize
=
materialTapTargetSize
??
MaterialTapTargetSize
.
padded
,
})
:
materialTapTargetSize
=
materialTapTargetSize
??
MaterialTapTargetSize
.
padded
,
assert
(
shape
!=
null
),
assert
(
elevation
!=
null
),
assert
(
highlightElevation
!=
null
),
...
...
packages/flutter/lib/src/material/expansion_panel.dart
View file @
5de96bb7
...
...
@@ -128,7 +128,7 @@ class ExpansionPanelList extends StatefulWidget {
})
:
assert
(
children
!=
null
),
assert
(
animationDuration
!=
null
),
_allowOnlyOnePanelOpen
=
false
,
this
.
initialOpenPanelValue
=
null
,
initialOpenPanelValue
=
null
,
super
(
key:
key
);
/// Creates a radio expansion panel list widget.
...
...
packages/flutter/lib/src/widgets/bottom_navigation_bar_item.dart
View file @
5de96bb7
...
...
@@ -27,7 +27,7 @@ class BottomNavigationBarItem {
@required
this
.
title
,
Widget
activeIcon
,
this
.
backgroundColor
,
})
:
this
.
activeIcon
=
activeIcon
??
icon
,
})
:
activeIcon
=
activeIcon
??
icon
,
assert
(
icon
!=
null
),
assert
(
title
!=
null
);
...
...
packages/flutter/lib/src/widgets/navigator.dart
View file @
5de96bb7
...
...
@@ -78,7 +78,7 @@ abstract class Route<T> {
///
/// If the [settings] are not provided, an empty [RouteSettings] object is
/// used instead.
Route
({
RouteSettings
settings
})
:
this
.
settings
=
settings
??
const
RouteSettings
();
Route
({
RouteSettings
settings
})
:
settings
=
settings
??
const
RouteSettings
();
/// The navigator that the route is in, if any.
NavigatorState
get
navigator
=>
_navigator
;
...
...
packages/flutter_driver/lib/src/common/find.dart
View file @
5de96bb7
...
...
@@ -191,8 +191,8 @@ class ByText extends SerializableFinder {
class
ByValueKey
extends
SerializableFinder
{
/// Creates a finder given the key value.
ByValueKey
(
this
.
keyValue
)
:
this
.
keyValueString
=
'
$keyValue
'
,
this
.
keyValueType
=
'
${keyValue.runtimeType}
'
{
:
keyValueString
=
'
$keyValue
'
,
keyValueType
=
'
${keyValue.runtimeType}
'
{
if
(!
_supportedKeyValueTypes
.
contains
(
keyValue
.
runtimeType
))
throw
_createInvalidKeyValueTypeError
(
'
$keyValue
.runtimeType'
);
}
...
...
packages/flutter_driver/lib/src/common/frame_sync.dart
View file @
5de96bb7
...
...
@@ -11,7 +11,7 @@ class SetFrameSync extends Command {
/// Deserializes this command from the value generated by [serialize].
SetFrameSync
.
deserialize
(
Map
<
String
,
String
>
params
)
:
this
.
enabled
=
params
[
'enabled'
].
toLowerCase
()
==
'true'
,
:
enabled
=
params
[
'enabled'
].
toLowerCase
()
==
'true'
,
super
.
deserialize
(
params
);
/// Whether frameSync should be enabled or disabled.
...
...
packages/flutter_driver/lib/src/common/gesture.dart
View file @
5de96bb7
...
...
@@ -44,10 +44,10 @@ class Scroll extends CommandWithTarget {
/// Deserializes this command from the value generated by [serialize].
Scroll
.
deserialize
(
Map
<
String
,
String
>
json
)
:
this
.
dx
=
double
.
parse
(
json
[
'dx'
]),
this
.
dy
=
double
.
parse
(
json
[
'dy'
]),
this
.
duration
=
Duration
(
microseconds:
int
.
parse
(
json
[
'duration'
])),
this
.
frequency
=
int
.
parse
(
json
[
'frequency'
]),
:
dx
=
double
.
parse
(
json
[
'dx'
]),
dy
=
double
.
parse
(
json
[
'dy'
]),
duration
=
Duration
(
microseconds:
int
.
parse
(
json
[
'duration'
])),
frequency
=
int
.
parse
(
json
[
'frequency'
]),
super
.
deserialize
(
json
);
/// Delta X offset per move event.
...
...
@@ -94,7 +94,7 @@ class ScrollIntoView extends CommandWithTarget {
/// Deserializes this command from the value generated by [serialize].
ScrollIntoView
.
deserialize
(
Map
<
String
,
String
>
json
)
:
this
.
alignment
=
double
.
parse
(
json
[
'alignment'
]),
:
alignment
=
double
.
parse
(
json
[
'alignment'
]),
super
.
deserialize
(
json
);
/// How the widget should be aligned.
...
...
packages/flutter_driver/lib/src/common/message.dart
View file @
5de96bb7
...
...
@@ -10,7 +10,7 @@ abstract class Command {
/// Abstract const constructor. This constructor enables subclasses to provide
/// const constructors so that they can be used in const expressions.
const
Command
({
Duration
timeout
})
:
t
his
.
t
imeout
=
timeout
??
const
Duration
(
seconds:
5
);
:
timeout
=
timeout
??
const
Duration
(
seconds:
5
);
/// Deserializes this command from the value generated by [serialize].
Command
.
deserialize
(
Map
<
String
,
String
>
json
)
...
...
packages/flutter_driver/lib/src/common/request_data.dart
View file @
5de96bb7
...
...
@@ -12,7 +12,7 @@ class RequestData extends Command {
/// Deserializes this command from the value generated by [serialize].
RequestData
.
deserialize
(
Map
<
String
,
String
>
params
)
:
this
.
message
=
params
[
'message'
],
:
message
=
params
[
'message'
],
super
.
deserialize
(
params
);
/// The message being sent from the test to the application.
...
...
packages/flutter_driver/lib/src/common/semantics.dart
View file @
5de96bb7
...
...
@@ -11,7 +11,7 @@ class SetSemantics extends Command {
/// Deserializes this command from the value generated by [serialize].
SetSemantics
.
deserialize
(
Map
<
String
,
String
>
params
)
:
this
.
enabled
=
params
[
'enabled'
].
toLowerCase
()
==
'true'
,
:
enabled
=
params
[
'enabled'
].
toLowerCase
()
==
'true'
,
super
.
deserialize
(
params
);
/// Whether semantics should be enabled (true) or disabled (false).
...
...
packages/flutter_driver/lib/src/driver/timeline_summary.dart
View file @
5de96bb7
...
...
@@ -207,7 +207,7 @@ class TimelineSummary {
class
TimedEvent
{
/// Creates a timed event given begin and end timestamps in microseconds.
TimedEvent
(
int
beginTimeMicros
,
int
endTimeMicros
)
:
this
.
duration
=
Duration
(
microseconds:
endTimeMicros
-
beginTimeMicros
);
:
duration
=
Duration
(
microseconds:
endTimeMicros
-
beginTimeMicros
);
/// The duration of the event.
final
Duration
duration
;
...
...
packages/flutter_localizations/lib/src/material_localizations.dart
View file @
5de96bb7
...
...
@@ -100,19 +100,19 @@ abstract class GlobalMaterialLocalizations implements MaterialLocalizations {
@required
intl
.
NumberFormat
decimalFormat
,
@required
intl
.
NumberFormat
twoDigitZeroPaddedFormat
,
})
:
assert
(
localeName
!=
null
),
this
.
_localeName
=
localeName
,
_localeName
=
localeName
,
assert
(
fullYearFormat
!=
null
),
this
.
_fullYearFormat
=
fullYearFormat
,
_fullYearFormat
=
fullYearFormat
,
assert
(
mediumDateFormat
!=
null
),
this
.
_mediumDateFormat
=
mediumDateFormat
,
_mediumDateFormat
=
mediumDateFormat
,
assert
(
longDateFormat
!=
null
),
this
.
_longDateFormat
=
longDateFormat
,
_longDateFormat
=
longDateFormat
,
assert
(
yearMonthFormat
!=
null
),
this
.
_yearMonthFormat
=
yearMonthFormat
,
_yearMonthFormat
=
yearMonthFormat
,
assert
(
decimalFormat
!=
null
),
this
.
_decimalFormat
=
decimalFormat
,
_decimalFormat
=
decimalFormat
,
assert
(
twoDigitZeroPaddedFormat
!=
null
),
this
.
_twoDigitZeroPaddedFormat
=
twoDigitZeroPaddedFormat
;
_twoDigitZeroPaddedFormat
=
twoDigitZeroPaddedFormat
;
final
String
_localeName
;
final
intl
.
DateFormat
_fullYearFormat
;
...
...
packages/flutter_tools/lib/src/android/android_studio.dart
View file @
5de96bb7
...
...
@@ -32,7 +32,7 @@ String get javaPath => androidStudio?.javaPath;
class
AndroidStudio
implements
Comparable
<
AndroidStudio
>
{
AndroidStudio
(
this
.
directory
,
{
Version
version
,
this
.
configured
,
this
.
studioAppName
=
'AndroidStudio'
})
:
this
.
version
=
version
??
Version
.
unknown
{
:
version
=
version
??
Version
.
unknown
{
_init
();
}
...
...
packages/flutter_tools/lib/src/resident_runner.dart
View file @
5de96bb7
...
...
@@ -35,7 +35,7 @@ class FlutterDevice {
this
.
fileSystemRoots
,
this
.
fileSystemScheme
,
ResidentCompiler
generator
,
})
:
this
.
generator
=
generator
??
ResidentCompiler
(
})
:
generator
=
generator
??
ResidentCompiler
(
artifacts
.
getArtifactPath
(
Artifact
.
flutterPatchedSdkPath
),
trackWidgetCreation:
trackWidgetCreation
,
fileSystemRoots:
fileSystemRoots
,
fileSystemScheme:
fileSystemScheme
...
...
packages/flutter_tools/lib/src/test/event_printer.dart
View file @
5de96bb7
...
...
@@ -9,7 +9,7 @@ import 'watcher.dart';
/// Prints JSON events when running a test in --machine mode.
class
EventPrinter
extends
TestWatcher
{
EventPrinter
({
StringSink
out
})
:
this
.
_out
=
out
==
null
?
stdout:
out
;
EventPrinter
({
StringSink
out
})
:
_out
=
out
==
null
?
stdout:
out
;
final
StringSink
_out
;
...
...
packages/flutter_tools/lib/src/vscode/vscode.dart
View file @
5de96bb7
...
...
@@ -14,7 +14,7 @@ const bool _includeInsiders = false;
class
VsCode
{
VsCode
.
_
(
this
.
directory
,
this
.
extensionDirectory
,
{
Version
version
,
this
.
edition
})
:
this
.
version
=
version
??
Version
.
unknown
{
:
version
=
version
??
Version
.
unknown
{
if
(!
fs
.
isDirectorySync
(
directory
))
{
_validationMessages
.
add
(
'VS Code not found at
$directory
'
);
...
...
@@ -195,7 +195,7 @@ class VsCode {
class
_VsCodeInstallLocation
{
const
_VsCodeInstallLocation
(
this
.
installPath
,
this
.
extensionsFolder
,
{
this
.
edition
,
bool
isInsiders
})
:
this
.
isInsiders
=
isInsiders
??
false
;
:
isInsiders
=
isInsiders
??
false
;
final
String
installPath
;
final
String
extensionsFolder
;
final
String
edition
;
...
...
packages/flutter_tools/test/integration/test_driver.dart
View file @
5de96bb7
...
...
@@ -24,7 +24,7 @@ const Duration quitTimeout = Duration(seconds: 10);
class
FlutterTestDriver
{
FlutterTestDriver
(
this
.
_projectFolder
,
{
String
logPrefix
}):
this
.
_logPrefix
=
logPrefix
!=
null
?
'
$logPrefix
: '
:
''
;
_logPrefix
=
logPrefix
!=
null
?
'
$logPrefix
: '
:
''
;
final
Directory
_projectFolder
;
final
String
_logPrefix
;
...
...
packages/fuchsia_remote_debug_protocol/lib/src/common/logging.dart
View file @
5de96bb7
...
...
@@ -69,9 +69,9 @@ class LogMessage {
///
/// When this message is created, it sets its [time] to [DateTime.now].
LogMessage
(
this
.
message
,
this
.
tag
,
this
.
level
)
:
this
.
levelName
=
:
levelName
=
level
.
toString
().
substring
(
level
.
toString
().
indexOf
(
'.'
)
+
1
),
t
his
.
t
ime
=
DateTime
.
now
();
time
=
DateTime
.
now
();
/// The actual log message.
final
String
message
;
...
...
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