Commit 8a88e2ef authored by Alexandre Ardhuin's avatar Alexandre Ardhuin Committed by GitHub

Bump Dart SDK to 1.25.0-dev.9.0 (#11509)

* Bump Dart SDK to 1.25.0-dev.9.0

* add link to sdk bug
parent 3b76e7e2
...@@ -148,7 +148,7 @@ class CommandArgs { ...@@ -148,7 +148,7 @@ class CommandArgs {
} }
class FakeDevice extends AndroidDevice { class FakeDevice extends AndroidDevice {
FakeDevice({String deviceId: null}) : super(deviceId: deviceId); FakeDevice({String deviceId}) : super(deviceId: deviceId);
static String output = ''; static String output = '';
static ExitErrorFactory exitErrorFactory = () => null; static ExitErrorFactory exitErrorFactory = () => null;
......
...@@ -18,7 +18,7 @@ class _CalculatorState extends State<Calculator> { ...@@ -18,7 +18,7 @@ class _CalculatorState extends State<Calculator> {
/// keep a stack of previous expressions so we can return to earlier states /// keep a stack of previous expressions so we can return to earlier states
/// when the user hits the DEL key. /// when the user hits the DEL key.
final List<CalcExpression> _expressionStack = <CalcExpression>[]; final List<CalcExpression> _expressionStack = <CalcExpression>[];
CalcExpression _expression = new CalcExpression.Empty(); CalcExpression _expression = new CalcExpression.empty();
// Make `expression` the current expression and push the previous current // Make `expression` the current expression and push the previous current
// expression onto the stack. // expression onto the stack.
...@@ -32,7 +32,7 @@ class _CalculatorState extends State<Calculator> { ...@@ -32,7 +32,7 @@ class _CalculatorState extends State<Calculator> {
if (_expressionStack.isNotEmpty) { if (_expressionStack.isNotEmpty) {
_expression = _expressionStack.removeLast(); _expression = _expressionStack.removeLast();
} else { } else {
_expression = new CalcExpression.Empty(); _expression = new CalcExpression.empty();
} }
} }
......
...@@ -120,10 +120,10 @@ enum ExpressionState { ...@@ -120,10 +120,10 @@ enum ExpressionState {
class CalcExpression { class CalcExpression {
CalcExpression(this._list, this.state); CalcExpression(this._list, this.state);
CalcExpression.Empty() CalcExpression.empty()
: this(<ExpressionToken>[], ExpressionState.Start); : this(<ExpressionToken>[], ExpressionState.Start);
CalcExpression.Result(FloatToken result) CalcExpression.result(FloatToken result)
: _list = <ExpressionToken>[], : _list = <ExpressionToken>[],
state = ExpressionState.Result { state = ExpressionState.Result {
_list.add(result); _list.add(result);
......
...@@ -7,7 +7,7 @@ import 'package:test/test.dart'; ...@@ -7,7 +7,7 @@ import 'package:test/test.dart';
void main() { void main() {
test('Test order of operations: 12 + 3 * 4 = 24', () { test('Test order of operations: 12 + 3 * 4 = 24', () {
CalcExpression expression = new CalcExpression.Empty(); CalcExpression expression = new CalcExpression.empty();
expression = expression.appendDigit(1); expression = expression.appendDigit(1);
expression = expression.appendDigit(2); expression = expression.appendDigit(2);
expression = expression.appendOperation(Operation.Addition); expression = expression.appendOperation(Operation.Addition);
...@@ -20,7 +20,7 @@ void main() { ...@@ -20,7 +20,7 @@ void main() {
}); });
test('Test floating point 0.1 + 0.2 = 0.3', () { test('Test floating point 0.1 + 0.2 = 0.3', () {
CalcExpression expression = new CalcExpression.Empty(); CalcExpression expression = new CalcExpression.empty();
expression = expression.appendDigit(0); expression = expression.appendDigit(0);
expression = expression.appendPoint(); expression = expression.appendPoint();
expression = expression.appendDigit(1); expression = expression.appendDigit(1);
...@@ -34,7 +34,7 @@ void main() { ...@@ -34,7 +34,7 @@ void main() {
}); });
test('Test floating point 1.0/10.0 = 0.1', () { test('Test floating point 1.0/10.0 = 0.1', () {
CalcExpression expression = new CalcExpression.Empty(); CalcExpression expression = new CalcExpression.empty();
expression = expression.appendDigit(1); expression = expression.appendDigit(1);
expression = expression.appendPoint(); expression = expression.appendPoint();
expression = expression.appendDigit(0); expression = expression.appendDigit(0);
...@@ -49,7 +49,7 @@ void main() { ...@@ -49,7 +49,7 @@ void main() {
}); });
test('Test 1/0 = Infinity', () { test('Test 1/0 = Infinity', () {
CalcExpression expression = new CalcExpression.Empty(); CalcExpression expression = new CalcExpression.empty();
expression = expression.appendDigit(1); expression = expression.appendDigit(1);
expression = expression.appendOperation(Operation.Division); expression = expression.appendOperation(Operation.Division);
expression = expression.appendDigit(0); expression = expression.appendDigit(0);
...@@ -59,7 +59,7 @@ void main() { ...@@ -59,7 +59,7 @@ void main() {
}); });
test('Test use result in next calculation: 1 + 1 = 2 + 1 = 3 + 1 = 4', () { test('Test use result in next calculation: 1 + 1 = 2 + 1 = 3 + 1 = 4', () {
CalcExpression expression = new CalcExpression.Empty(); CalcExpression expression = new CalcExpression.empty();
expression = expression.appendDigit(1); expression = expression.appendDigit(1);
expression = expression.appendOperation(Operation.Addition); expression = expression.appendOperation(Operation.Addition);
expression = expression.appendDigit(1); expression = expression.appendDigit(1);
...@@ -75,7 +75,7 @@ void main() { ...@@ -75,7 +75,7 @@ void main() {
}); });
test('Test minus -3 - -2 = -1', () { test('Test minus -3 - -2 = -1', () {
CalcExpression expression = new CalcExpression.Empty(); CalcExpression expression = new CalcExpression.empty();
expression = expression.appendMinus(); expression = expression.appendMinus();
expression = expression.appendDigit(3); expression = expression.appendDigit(3);
expression = expression.appendMinus(); expression = expression.appendMinus();
......
...@@ -1201,7 +1201,7 @@ class FlagProperty extends DiagnosticsProperty<bool> { ...@@ -1201,7 +1201,7 @@ class FlagProperty extends DiagnosticsProperty<bool> {
this.ifFalse, this.ifFalse,
bool showName: false, bool showName: false,
bool hidden: false, bool hidden: false,
Object defaultValue: null, Object defaultValue,
}) : super( }) : super(
name, name,
value, value,
......
...@@ -492,7 +492,7 @@ class Border { ...@@ -492,7 +492,7 @@ class Border {
/// requirement that the border [isUniform]. /// requirement that the border [isUniform].
void paint(Canvas canvas, Rect rect, { void paint(Canvas canvas, Rect rect, {
BoxShape shape: BoxShape.rectangle, BoxShape shape: BoxShape.rectangle,
BorderRadius borderRadius: null, BorderRadius borderRadius,
}) { }) {
if (isUniform) { if (isUniform) {
if (borderRadius != null) { if (borderRadius != null) {
......
...@@ -40,7 +40,8 @@ class RenderProxyBox extends RenderBox with RenderObjectWithChildMixin<RenderBox ...@@ -40,7 +40,8 @@ class RenderProxyBox extends RenderBox with RenderObjectWithChildMixin<RenderBox
/// Proxy render boxes are rarely created directly because they simply proxy /// Proxy render boxes are rarely created directly because they simply proxy
/// the render box protocol to [child]. Instead, consider using one of the /// the render box protocol to [child]. Instead, consider using one of the
/// subclasses. /// subclasses.
RenderProxyBox([RenderBox child = null]) { // TODO(a14n): Remove ignore once https://github.com/dart-lang/sdk/issues/30328 is fixed
RenderProxyBox([RenderBox child = null]) { //ignore: avoid_init_to_null
this.child = child; this.child = child;
} }
} }
......
...@@ -83,7 +83,7 @@ class PageRouteBuilder<T> extends PageRoute<T> { ...@@ -83,7 +83,7 @@ class PageRouteBuilder<T> extends PageRoute<T> {
this.transitionDuration: const Duration(milliseconds: 300), this.transitionDuration: const Duration(milliseconds: 300),
this.opaque: true, this.opaque: true,
this.barrierDismissible: false, this.barrierDismissible: false,
this.barrierColor: null, this.barrierColor,
this.maintainState: true, this.maintainState: true,
}) : assert(pageBuilder != null), }) : assert(pageBuilder != null),
assert(transitionsBuilder != null), assert(transitionsBuilder != null),
......
...@@ -421,7 +421,7 @@ class _IOSDevicePortForwarder extends DevicePortForwarder { ...@@ -421,7 +421,7 @@ class _IOSDevicePortForwarder extends DevicePortForwarder {
List<ForwardedPort> get forwardedPorts => _forwardedPorts; List<ForwardedPort> get forwardedPorts => _forwardedPorts;
@override @override
Future<int> forward(int devicePort, {int hostPort: null}) async { Future<int> forward(int devicePort, {int hostPort}) async {
if ((hostPort == null) || (hostPort == 0)) { if ((hostPort == null) || (hostPort == 0)) {
// Auto select host port. // Auto select host port.
hostPort = await portScanner.findAvailablePort(); hostPort = await portScanner.findAvailablePort();
......
...@@ -697,7 +697,7 @@ class _IOSSimulatorDevicePortForwarder extends DevicePortForwarder { ...@@ -697,7 +697,7 @@ class _IOSSimulatorDevicePortForwarder extends DevicePortForwarder {
} }
@override @override
Future<int> forward(int devicePort, {int hostPort: null}) async { Future<int> forward(int devicePort, {int hostPort}) async {
if ((hostPort == null) || (hostPort == 0)) { if ((hostPort == null) || (hostPort == 0)) {
hostPort = devicePort; hostPort = devicePort;
} }
......
...@@ -17,7 +17,7 @@ dependencies: ...@@ -17,7 +17,7 @@ dependencies:
intl: '>=0.14.0 <0.16.0' intl: '>=0.14.0 <0.16.0'
json_rpc_2: ^2.0.0 json_rpc_2: ^2.0.0
json_schema: 1.0.6 json_schema: 1.0.6
linter: 0.1.31 linter: 0.1.35
meta: ^1.0.5 meta: ^1.0.5
mustache: ^0.2.5 mustache: ^0.2.5
package_config: '>=0.1.5 <2.0.0' package_config: '>=0.1.5 <2.0.0'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment