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 {
}
class FakeDevice extends AndroidDevice {
FakeDevice({String deviceId: null}) : super(deviceId: deviceId);
FakeDevice({String deviceId}) : super(deviceId: deviceId);
static String output = '';
static ExitErrorFactory exitErrorFactory = () => null;
......
......@@ -18,7 +18,7 @@ class _CalculatorState extends State<Calculator> {
/// keep a stack of previous expressions so we can return to earlier states
/// when the user hits the DEL key.
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
// expression onto the stack.
......@@ -32,7 +32,7 @@ class _CalculatorState extends State<Calculator> {
if (_expressionStack.isNotEmpty) {
_expression = _expressionStack.removeLast();
} else {
_expression = new CalcExpression.Empty();
_expression = new CalcExpression.empty();
}
}
......
......@@ -120,10 +120,10 @@ enum ExpressionState {
class CalcExpression {
CalcExpression(this._list, this.state);
CalcExpression.Empty()
CalcExpression.empty()
: this(<ExpressionToken>[], ExpressionState.Start);
CalcExpression.Result(FloatToken result)
CalcExpression.result(FloatToken result)
: _list = <ExpressionToken>[],
state = ExpressionState.Result {
_list.add(result);
......
......@@ -7,7 +7,7 @@ import 'package:test/test.dart';
void main() {
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(2);
expression = expression.appendOperation(Operation.Addition);
......@@ -20,7 +20,7 @@ void main() {
});
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.appendPoint();
expression = expression.appendDigit(1);
......@@ -34,7 +34,7 @@ void main() {
});
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.appendPoint();
expression = expression.appendDigit(0);
......@@ -49,7 +49,7 @@ void main() {
});
test('Test 1/0 = Infinity', () {
CalcExpression expression = new CalcExpression.Empty();
CalcExpression expression = new CalcExpression.empty();
expression = expression.appendDigit(1);
expression = expression.appendOperation(Operation.Division);
expression = expression.appendDigit(0);
......@@ -59,7 +59,7 @@ void main() {
});
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.appendOperation(Operation.Addition);
expression = expression.appendDigit(1);
......@@ -75,7 +75,7 @@ void main() {
});
test('Test minus -3 - -2 = -1', () {
CalcExpression expression = new CalcExpression.Empty();
CalcExpression expression = new CalcExpression.empty();
expression = expression.appendMinus();
expression = expression.appendDigit(3);
expression = expression.appendMinus();
......
......@@ -1201,7 +1201,7 @@ class FlagProperty extends DiagnosticsProperty<bool> {
this.ifFalse,
bool showName: false,
bool hidden: false,
Object defaultValue: null,
Object defaultValue,
}) : super(
name,
value,
......
......@@ -492,7 +492,7 @@ class Border {
/// requirement that the border [isUniform].
void paint(Canvas canvas, Rect rect, {
BoxShape shape: BoxShape.rectangle,
BorderRadius borderRadius: null,
BorderRadius borderRadius,
}) {
if (isUniform) {
if (borderRadius != null) {
......
......@@ -40,7 +40,8 @@ class RenderProxyBox extends RenderBox with RenderObjectWithChildMixin<RenderBox
/// Proxy render boxes are rarely created directly because they simply proxy
/// the render box protocol to [child]. Instead, consider using one of the
/// 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;
}
}
......
......@@ -83,7 +83,7 @@ class PageRouteBuilder<T> extends PageRoute<T> {
this.transitionDuration: const Duration(milliseconds: 300),
this.opaque: true,
this.barrierDismissible: false,
this.barrierColor: null,
this.barrierColor,
this.maintainState: true,
}) : assert(pageBuilder != null),
assert(transitionsBuilder != null),
......
......@@ -421,7 +421,7 @@ class _IOSDevicePortForwarder extends DevicePortForwarder {
List<ForwardedPort> get forwardedPorts => _forwardedPorts;
@override
Future<int> forward(int devicePort, {int hostPort: null}) async {
Future<int> forward(int devicePort, {int hostPort}) async {
if ((hostPort == null) || (hostPort == 0)) {
// Auto select host port.
hostPort = await portScanner.findAvailablePort();
......
......@@ -697,7 +697,7 @@ class _IOSSimulatorDevicePortForwarder extends DevicePortForwarder {
}
@override
Future<int> forward(int devicePort, {int hostPort: null}) async {
Future<int> forward(int devicePort, {int hostPort}) async {
if ((hostPort == null) || (hostPort == 0)) {
hostPort = devicePort;
}
......
......@@ -17,7 +17,7 @@ dependencies:
intl: '>=0.14.0 <0.16.0'
json_rpc_2: ^2.0.0
json_schema: 1.0.6
linter: 0.1.31
linter: 0.1.35
meta: ^1.0.5
mustache: ^0.2.5
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