From b9f6e2c31522df72c1a1218e55a9effb5ee10be4 Mon Sep 17 00:00:00 2001 From: Rui Kowase Date: Thu, 4 Oct 2018 01:11:29 +0900 Subject: [PATCH] Remove `new` keyword from sample code (#22465) --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1be7e18bf1..8a47ae944d 100644 --- a/README.md +++ b/README.md @@ -71,13 +71,13 @@ class CounterState extends State { // build methods fast, so that you can just rebuild anything that // needs updating rather than having to individually change // instances of widgets. - return new Row( + return Row( children: [ - new RaisedButton( + RaisedButton( onPressed: increment, - child: new Text('Increment'), + child: Text('Increment'), ), - new Text('Count: $counter'), + Text('Count: $counter'), ], ); }