Skip to content

Commit

Permalink
Removed new keyword for Dart 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
burhanrashid52 committed Nov 27, 2018
1 parent 3462ca7 commit d1c0477
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/db/app_db.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import 'package:flutter_app/pages/tasks/models/tasks.dart';
/// This is the singleton database class which handlers all database transactions
/// All the task raw queries is handle here and return a Future<T> with result
class AppDatabase {
static final AppDatabase _appDatabase = new AppDatabase._internal();
static final AppDatabase _appDatabase = AppDatabase._internal();

//private internal constructor to make it singleton
AppDatabase._internal();
Expand Down
2 changes: 1 addition & 1 deletion test/widget_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import 'package:flutter_app/main.dart';
void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(new MyApp());
await tester.pumpWidget(MyApp());

// Verify that our counter starts at 0.
expect(find.text('0'), findsOneWidget);
Expand Down

0 comments on commit d1c0477

Please sign in to comment.